*def command support regular expression in noderange

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3574 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
ligc 2009-06-15 09:29:56 +00:00
parent 8d039313e1
commit 79478880c4

View File

@ -274,7 +274,14 @@ sub processArgs
# if the type was not provided or it is "node"
# then set noderange
@::noderange = &noderange($a, 1); # Use the "verify" option to support regular expression
if (($::command ne 'mkdef') && ($a =~ m/^\//))
{
@::noderange = &noderange($a, 1); # Use the "verify" option to support regular expression
}
else
{
@::noderange = &noderange($a, 0); # mkdef could not spport regular expression
}
}
}
@ -520,7 +527,14 @@ sub processArgs
}
elsif ($::opt_t eq 'node')
{
@::clobjnames = &noderange($::opt_o, 1); #Use the "verify" option to support regular expression
if (($::command ne 'mkdef') && ($a =~ m/^\//))
{
@::clobjnames = &noderange($::opt_o, 1); #Use the "verify" option to support regular expression
}
else
{
@::clobjnames = &noderange($::opt_o, 0); #mkdef can not support regular expression
}
}
else
{