summaryrefslogtreecommitdiff
path: root/lib/ohai/plugins/linode.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ohai/plugins/linode.rb')
-rw-r--r--lib/ohai/plugins/linode.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ohai/plugins/linode.rb b/lib/ohai/plugins/linode.rb
index 64e8a62f..60cdb210 100644
--- a/lib/ohai/plugins/linode.rb
+++ b/lib/ohai/plugins/linode.rb
@@ -25,7 +25,7 @@ Ohai.plugin(:Linode) do
# Returns true or false
def has_linode_kernel?
if ( kernel_data = kernel )
- kernel_data[:release].split("-").last =~ /linode/
+ kernel_data[:release].split("-").last.include?("linode")
end
end