]> gitweb.fluxo.info Git - leap/leap_cli.git/commitdiff
fixed bug when seeding values to `leap node add`
authorelijah <elijah@riseup.net>
Mon, 13 May 2013 21:00:02 +0000 (14:00 -0700)
committerelijah <elijah@riseup.net>
Mon, 13 May 2013 21:00:02 +0000 (14:00 -0700)
lib/leap_cli/commands/node.rb

index 379fba6e8972b53ea2801a6fc512fbd7871c7c01..4c7230ca89e608cf11fda2f6420070602b52bfe1 100644 (file)
@@ -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