Skip to content

Commit

Permalink
Updated allowed variable formats in fornodesrc
Browse files Browse the repository at this point in the history
  • Loading branch information
Mithun Ayachit committed Aug 4, 2011
1 parent d05a55d commit 7c54d99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/SSH/Batch/ForNodes.pm
Expand Up @@ -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";
}
Expand Down Expand Up @@ -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};
Expand Down

0 comments on commit 7c54d99

Please sign in to comment.