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/branches/2.8@15750 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
0bc40f667a
commit
41c00b59e2
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user