summaryrefslogtreecommitdiff
path: root/lib/leap_cli
diff options
context:
space:
mode:
authorChristoph Kluenter <ckluente@thoughtworks.com>2015-12-16 11:19:10 +0100
committerChristoph Kluenter <ckluente@thoughtworks.com>2015-12-16 11:19:10 +0100
commit8d4e3610ce836e4fe95c347920b9da5c32037dbb (patch)
tree71a437beaa8cb4616fde387e637f80cf22be92bc /lib/leap_cli
parent22d6397fb2e71345652a80392cd72d359ece68a4 (diff)
ensure that the key/value are only split on the first colon
Diffstat (limited to 'lib/leap_cli')
-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