lib/chef/sugar/rackspace/rackconnect.rb in chef-sugar-rackspace-0.2.0 vs lib/chef/sugar/rackspace/rackconnect.rb in chef-sugar-rackspace-0.3.0
- old
+ new
@@ -4,14 +4,14 @@
module Sugar
module Rackconnect
extend self
def rackconnected?(node)
- return false unless node.has_key? 'rackspace'
- if node['rackspace'].has_key? 'rackconnect'
+ return false unless node.key? 'rackspace'
+ if node['rackspace'].key? 'rackconnect'
return node['rackspace']['rackconnect']['enabled']
else
- fail 'must have rackconnect ohai plugin installed'
+ return false
end
end
end
module DSL