-Change rpower back to coping with unregistered VMs the way it used to
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7029 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
e04429d3d8
commit
15cee34b33
@ -1257,10 +1257,9 @@ sub power {
|
||||
my $pretendop = $args{pretendop}; #to pretend a system was on for reset or boot when we have to turn it off internally for reconfig
|
||||
if (not defined $args{vmview}) { #attempt one refresh
|
||||
$args{vmview} = $hyphash{$hyp}->{conn}->find_entity_view(view_type => 'VirtualMachine',properties=>['config.name','config.guestId','config.hardware.memoryMB','config.hardware.numCPU','runtime.powerState'],filter=>{name=>$node});
|
||||
if (not defined $args{vmview}) {
|
||||
xCAT::SvrUtils::sendmsg([1,"VM does not appear to exist"], $output_handler,$node);
|
||||
return;
|
||||
}
|
||||
#vmview not existing now is not an issue, this function
|
||||
#is designed to handle that and correct if reasonably possible
|
||||
#comes into play particularly in a stateless context
|
||||
}
|
||||
@ARGV = @{$args{exargs}}; #for getoptions;
|
||||
my $forceon;
|
||||
|
Loading…
x
Reference in New Issue
Block a user