aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2013-05-15 14:46:03 -0700
committerelijah <elijah@riseup.net>2013-05-15 14:46:03 -0700
commit0ae062fc08952951a8a9f6dec66a9aa08d60c5d3 (patch)
tree8f3af0c0d9fb450f4e158e1d0399fc85a0a166e0 /lib
parentd0ffb032025d54698abc6dde86fcf36770a5b1ca (diff)
downloadleap_cli-0ae062fc08952951a8a9f6dec66a9aa08d60c5d3.tar.gz
leap_cli-0ae062fc08952951a8a9f6dec66a9aa08d60c5d3.tar.bz2
minor fix to `leap node add`
Diffstat (limited to 'lib')
-rw-r--r--lib/leap_cli/commands/node.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/leap_cli/commands/node.rb b/lib/leap_cli/commands/node.rb
index f34b55a..21822d1 100644
--- a/lib/leap_cli/commands/node.rb
+++ b/lib/leap_cli/commands/node.rb
@@ -215,7 +215,7 @@ module LeapCli; module Commands
def format_seed_value(v)
if v =~ /,/
v = v.split(',')
- v.map do |i|
+ v.map! do |i|
i = i.to_i if i.to_i.to_s == i
i = i.to_f if i.to_f.to_s == i
i