Closed jarosser06 closed 9 years ago
node['rackspace'] && node['rackspace']['rackconnect'] etc will return nil instead of false
node['rackspace'] && node['rackspace']['rackconnect'] etc will return nil instead of false
FWIW, nil
is still falsey in comparisons, so that's okay:
$ irb
irb(main):001:0> !!nil
=> false
irb(main):002:0> nil && true
=> nil
irb(main):003:0> nil || true
=> true
One final thought -- this could be super short if you had
rackconnected?
return a truthy value instead of a true/false; it could return the version of RC.Something like: