From 8d4e3610ce836e4fe95c347920b9da5c32037dbb Mon Sep 17 00:00:00 2001 From: Christoph Kluenter Date: Wed, 16 Dec 2015 11:19:10 +0100 Subject: ensure that the key/value are only split on the first colon --- lib/leap_cli/commands/node.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') 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 -- cgit v1.2.3