From: elijah Date: Mon, 13 May 2013 21:00:02 +0000 (-0700) Subject: fixed bug when seeding values to `leap node add` X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=5f581620a2f1af295ac173f508e53b8551706072;p=leap%2Fleap_cli.git fixed bug when seeding values to `leap node add` --- 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