diff options
Diffstat (limited to 'lib/leap_cli')
-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 |