Skip to content
Browse files

msg method does not throw exception when value is nil

  • Loading branch information...
1 parent 4751e6c commit a4eee1a5f560b125a699223f18d60da49289e67a @sax sax committed Aug 2, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/chef/knife/joyent_server_create.rb
View
2 lib/chef/knife/joyent_server_create.rb
@@ -157,7 +157,7 @@ def run
exit 0
end
- def msg(label, value)
+ def msg(label, value = nil)
if value && !value.empty?
puts "#{ui.color(label, :cyan)}: #{value}"
end

0 comments on commit a4eee1a

Please sign in to comment.
Something went wrong with that request. Please try again.