Permalink
Browse files

Fix false values has been removed on generating solo.json

Some cookbook uses boolean value for customize its behavior.
but remove_procs_from_hash() removes all false values.
  • Loading branch information...
1 parent db0fd6e commit 2850029dd093390ce73549661beef28bbba8f723 @tk0miya tk0miya committed Oct 31, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/roundsman/capistrano.rb
@@ -256,7 +256,7 @@ def remove_procs_from_hash(hash)
if real_value.is_a?(Hash)
real_value = remove_procs_from_hash(real_value)
end
- if real_value && !real_value.class.to_s.include?("Capistrano") # skip capistrano tasks
+ if real_value != nil && !real_value.class.to_s.include?("Capistrano") # skip capistrano tasks
new_hash[key] = real_value
end
end

0 comments on commit 2850029

Please sign in to comment.