diff options
-rw-r--r-- | lib/ohai/plugins/rackspace.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ohai/plugins/rackspace.rb b/lib/ohai/plugins/rackspace.rb index 83603f86..02b06d1a 100644 --- a/lib/ohai/plugins/rackspace.rb +++ b/lib/ohai/plugins/rackspace.rb @@ -26,7 +26,7 @@ Ohai.plugin(:Rackspace) do # true:: If kernel name matches # false:: Otherwise def has_rackspace_kernel? - kernel[:release].split("-").last.eql?("rscloud") + kernel[:release].end_with?("-rscloud") end # Checks for rackspace provider attribute |