summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/leap_cli/config/object.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/leap_cli/config/object.rb b/lib/leap_cli/config/object.rb
index de3c2c7..492de34 100644
--- a/lib/leap_cli/config/object.rb
+++ b/lib/leap_cli/config/object.rb
@@ -104,7 +104,7 @@ module LeapCli
def pick(*keys)
keys.map(&:to_s).inject(Config::Object.new(@manager,@node)) do |hsh, key|
value = self.get(key)
- if value
+ if !value.nil?
hsh[key.gsub('.','_')] = value
end
hsh