Permalink
Browse files

print _default if no environment is passed to create subcommand

  • Loading branch information...
schisamo committed Apr 21, 2011
1 parent 8a48a9b commit 3d419b80725ce012e8dac9b3bd52fa4aa98db590
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/chef/knife/rackspace_server_create.rb
@@ -185,7 +185,7 @@ def run
puts "#{ui.color("Public IP Address", :cyan)}: #{server.addresses["public"][0]}"
puts "#{ui.color("Private IP Address", :cyan)}: #{server.addresses["private"][0]}"
puts "#{ui.color("Password", :cyan)}: #{server.password}"
- puts "#{ui.color("Environment", :cyan)}: #{config[:environment]}"
+ puts "#{ui.color("Environment", :cyan)}: #{config[:environment] || '_default'}"
puts "#{ui.color("Run List", :cyan)}: #{config[:run_list].join(', ')}"
end

0 comments on commit 3d419b8

Please sign in to comment.