diff options
author | elijah <elijah@riseup.net> | 2013-05-13 14:00:02 -0700 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2013-05-13 14:00:02 -0700 |
commit | 5f581620a2f1af295ac173f508e53b8551706072 (patch) | |
tree | 8227bc8962c18649fbd05e2ab8eaa33f68fe0665 /lib | |
parent | 115f471d6244fcaf4f68e99d729ef10c72289ccb (diff) |
fixed bug when seeding values to `leap node add`
Diffstat (limited to 'lib')
-rw-r--r-- | lib/leap_cli/commands/node.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/leap_cli/commands/node.rb b/lib/leap_cli/commands/node.rb index 379fba6..4c7230c 100644 --- a/lib/leap_cli/commands/node.rb +++ b/lib/leap_cli/commands/node.rb @@ -195,7 +195,7 @@ module LeapCli; module Commands final_key = key_parts.pop current_object = node key_parts.each do |key_part| - current_object[key_part] = Config::Object.new + current_object[key_part] ||= Config::Object.new current_object = current_object[key_part] end current_object[final_key] = value |