summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvarac <varac@users.noreply.github.com>2015-12-16 12:59:42 +0100
committervarac <varac@users.noreply.github.com>2015-12-16 12:59:42 +0100
commit3a02d3ab10f3f1803616925549155678b1519c3e (patch)
tree71a437beaa8cb4616fde387e637f80cf22be92bc
parent22d6397fb2e71345652a80392cd72d359ece68a4 (diff)
parent8d4e3610ce836e4fe95c347920b9da5c32037dbb (diff)
Merge pull request #93 from pixelated/fix_7710
ensure that the key/value are only split on the first colon
-rw-r--r--lib/leap_cli/commands/node.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/leap_cli/commands/node.rb b/lib/leap_cli/commands/node.rb
index 12d6b49d..ecd11f5e 100644
--- a/lib/leap_cli/commands/node.rb
+++ b/lib/leap_cli/commands/node.rb
@@ -93,7 +93,7 @@ module LeapCli; module Commands
def seed_node_data(node, args)
args.each do |seed|
- key, value = seed.split(':')
+ key, value = seed.split(':', 2)
value = format_seed_value(value)
assert! key =~ /^[0-9a-z\._]+$/, "illegal characters used in property '#{key}'"
if key =~ /\./
@@ -162,4 +162,4 @@ module LeapCli; module Commands
end
end
-end; end \ No newline at end of file
+end; end