Permalink
Browse files

Merge pull request #1 from mithun/master

Updated allowed variable formats in fornodesrc
  • Loading branch information...
2 parents d05a55d + 7c54d99 commit ed59bccea386d27268a3055df45de046997ab284 @agentzh committed Aug 5, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/SSH/Batch/ForNodes.pm
@@ -72,7 +72,7 @@ sub parse_line ($$) {
my $rcfile = $_[1];
if (/^\s*([^=\s]*)\s*=\s*(.*)/) {
my ($var, $def) = ($1, $2);
- if ($var !~ /^[-\w]+$/) {
+ if ($var !~ /^\S+$/) {
die "Invalid variable name in $rcfile, line $.: ",
"$var\n";
}
@@ -179,7 +179,7 @@ sub parse_term ($) {
local *_ = \($_[0]);
if (/^ \{ ( [^}\s]* ) \} $/x) {
my $var = $1;
- if ($var !~ /^[-\w]+$/) {
+ if ($var !~ /^\S+$/) {
die "Invalid variable name in term $_: $var\n";
}
my $set = $Vars{$var};

0 comments on commit ed59bcc

Please sign in to comment.