lib/gogetit/util.rb in gogetit-0.21.0 vs lib/gogetit/util.rb in gogetit-0.21.1
- old
+ new
@@ -102,11 +102,11 @@
end
def knife_remove(name, options)
logger.info("Calling <#{__method__.to_s}>")
if find_executable 'knife'
- if options['chef']
+ if options[:chef]
if system('knife ssl check')
logger.info("With chef-server..")
puts "Deleting node #{name}.."
logger.info("knife node delete -y #{name}")
system("knife node delete -y #{name}")
@@ -114,11 +114,11 @@
logger.info("knife client delete -y #{name}")
system("knife client delete -y #{name}")
else
abort('knife is not configured properly.')
end
- elsif options['zero']
+ elsif options[:zero]
logger.info("With chef-zero..")
puts "Deleting node #{name}.."
logger.info("knife node delete -y #{name}")
system("knife node delete -y #{name}")
puts "Deleting client #{name}.."
@@ -268,10 +268,10 @@
# apt
user_data['apt'] = {}
# preserve source list for a while
user_data['apt']['preserve_sources_list'] = true
- if options['no-maas']
+ if options[:'no-maas']
# When there is no MAAS, containers should be able to resolve
# their name with hosts file.
user_data['manage_etc_hosts'] = true
end