Fix problem where serialized empty list of args manifested differently between xml and storable strategies

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@16671 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2013-06-18 17:45:17 +00:00
parent df8fdf3896
commit 4e16d8fb9f
2 changed files with 6 additions and 2 deletions

View File

@ -89,7 +89,9 @@ if ($arg ne "NO_NODE_RANGE") {
$arg = join(',',@tempnr);
$cmdref->{noderange}->[0]=$arg;
}
push (@{$cmdref->{arg}}, @ARGV);
if (@ARGV) {
push (@{$cmdref->{arg}}, @ARGV);
}
foreach (keys %ENV) {
if (/^XCAT_/) {
$cmdref->{environment}->{$_} = $ENV{$_};

View File

@ -41,7 +41,9 @@ else
}
push (@{$cmdref->{arg}}, @ARGV);
if (@ARGV) {
push (@{$cmdref->{arg}}, @ARGV);
}
foreach (keys %ENV) {
if (/^XCAT_/) {
$cmdref->{environment}->{$_} = $ENV{$_};