From ea4c51b822691ad59ab04fd9b12cc408fd105f1b Mon Sep 17 00:00:00 2001 From: elijah Date: Mon, 17 Dec 2012 22:17:29 -0800 Subject: forbid illegal characters in the node name. --- lib/leap_cli/commands/node.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/leap_cli/commands/node.rb') diff --git a/lib/leap_cli/commands/node.rb b/lib/leap_cli/commands/node.rb index 87718e9..6a60c45 100644 --- a/lib/leap_cli/commands/node.rb +++ b/lib/leap_cli/commands/node.rb @@ -22,7 +22,7 @@ module LeapCli; module Commands # argument sanity checks name = args.first assert! name, 'No specified.' - assert! name =~ /^[0-9a-z_-]+$/, "illegal characters used in node name '#{name}'" + assert! name =~ /^[0-9a-z-]+$/, "illegal characters used in node name '#{name}'" assert_files_missing! [:node_config, node.name] # create and seed new node -- cgit v1.2.3