-Fix problem where a '0' in a bracketed expression would break noderange expansion

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@4755 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2009-12-10 20:22:40 +00:00
parent 5eeb229301
commit 687bb27418

View File

@ -282,7 +282,9 @@ sub expandatom { #TODO: implement table selection as an atom (nodetype.os==rhels
#xcat 1.2 does no better
my @subelems = split(/([\,\-\:])/,$2);
my $subrange="";
while (my $subelem = shift @subelems) {
my $subelem;
while (scalar @subelems) {
my $subelem = shift @subelems;
my $subop=shift @subelems;
$subrange=$subrange."$1$subelem$3$subop";
}