add support for updatenode -l disabled

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14725 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
lissav 2013-01-02 17:19:48 +00:00
parent 2cdd31a312
commit aee9b874b1

View File

@ -226,6 +226,7 @@ sub preprocess_updatenode
'v|version' => \$::VERSION,
'V|verbose' => \$::VERBOSE,
'F|sync' => \$::FILESYNC,
'l|user:s' => \$::USER,
'f|snsync' => \$::SNFILESYNC,
'S|sw' => \$::SWMAINTENANCE,
's|sn' => \$::SETSERVER,
@ -1218,6 +1219,12 @@ sub updatenoderunps
"$installdir/postscripts/xcatdsklspost $mode -m $snkey '$postscripts' --tftp $tftpdir --installdir $installdir --nfsv4 $nfsv4"
];
}
# if -l username input
if (defined($::USER)){ # need to add the -l username
unshift(@$args1, "$::USER");
unshift(@$args1, "-l");
}
if ($::VERBOSE)
{
@ -1532,6 +1539,11 @@ sub updatenodesoftware
"$cmd"
];
}
# if -l username input
if (defined($::USER)){ # need to add the -l username
unshift(@$args1, "$::USER");
unshift(@$args1, "-l");
}
if ($::VERBOSE)
{