Fixed bug where argument size check was not correct. Added default mode for chvm --add9336 option.

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15750 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
phamt 2013-04-01 01:46:31 +00:00
parent 9e26b11fe2
commit a9e5f73abd

View File

@ -852,13 +852,17 @@ sub changeVM {
my $pool = $args->[1];
my $addr = $args->[2];
my $blks = $args->[3];
my $mode = $args->[4];
# If the user specifies auto as the device address, then find a free device address
if ($addr eq "auto") {
$addr = xCAT::zvmUtils->getFreeAddress($::SUDOER, $node, "smapi");
}
my $mode = "MR";
if ($args->[4]) {
$mode = $args->[4];
}
my $readPw = "''";
if ($args->[5]) {
$readPw = $args->[5];
@ -1031,7 +1035,7 @@ sub changeVM {
my $wwpn;
my $lun;
my $useWwpnLun = 0;
if ($argsSize == 7) {
if ($argsSize == 8) {
$useWwpnLun = 1;
$wwpn = $args->[6];
$lun = $args->[7];