From 15cee34b3303145d964edb6d2d7c555881b0f276 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Tue, 10 Aug 2010 18:22:21 +0000 Subject: [PATCH] -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 --- xCAT-server/lib/xcat/plugins/esx.pm | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/esx.pm b/xCAT-server/lib/xcat/plugins/esx.pm index 147db6625..0d2717726 100644 --- a/xCAT-server/lib/xcat/plugins/esx.pm +++ b/xCAT-server/lib/xcat/plugins/esx.pm @@ -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;