Fixed webportal bug where dasd list entry only contains 1 device. Renamed chhypervisor --smapi to --smcli.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14428 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
fbac04966b
commit
035353b17d
@ -261,9 +261,18 @@ sub provzlinux {
|
||||
# Read XML file
|
||||
my $data = $xml->XMLin($tmpl);
|
||||
|
||||
my $devices = $data->{'dasd'}->{'devices'}->{'listentry'};
|
||||
foreach (@$devices) {
|
||||
|
||||
my $devices_ref = $data->{'dasd'}->{'devices'}->{'listentry'};
|
||||
my @devices;
|
||||
|
||||
if (ref($devices_ref) eq 'HASH') {
|
||||
# In the case of 1 device in the listentry, push hash into array
|
||||
push(@devices, $devices_ref);
|
||||
} else {
|
||||
# Listentry is an array reference
|
||||
@devices = @$devices_ref;
|
||||
}
|
||||
|
||||
foreach (@devices) {
|
||||
# Get disk virtual address and disk type
|
||||
$type = $_->{'drivers'}->{'listentry'}->{'modules'}->{'module_entry'}->{'listentry'};
|
||||
$virt_addr = $_->{'sysfs_bus_id'};
|
||||
|
@ -5529,8 +5529,8 @@ sub changeHypervisor {
|
||||
$out = xCAT::zvmCPUtils->getNetwork( $hcp, $netName );
|
||||
}
|
||||
|
||||
# smapi [api] [args]
|
||||
elsif ( $args->[0] eq "--smapi" ) {
|
||||
# smcli [api] [args]
|
||||
elsif ( $args->[0] eq "--smcli" ) {
|
||||
# Invoke SMAPI API directly through zHCP smcli
|
||||
my $str = "@{$args}";
|
||||
$str =~ s/$args->[0]//g;
|
||||
|
Loading…
Reference in New Issue
Block a user