From 6f3159c2dda81097ef58e6f335e437b1a5148def Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Wed, 24 Mar 2010 15:09:43 +0000 Subject: [PATCH] -Be more specific about vm placement on power on in the face of clustered hypervisors git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5574 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/esx.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/esx.pm b/xCAT-server/lib/xcat/plugins/esx.pm index ffaced236..79a90cfd9 100644 --- a/xCAT-server/lib/xcat/plugins/esx.pm +++ b/xCAT-server/lib/xcat/plugins/esx.pm @@ -954,7 +954,7 @@ sub power { return; #We'll pick it up on the retry if it gets registered } eval { - $task = $args{vmview}->PowerOnVM_Task(); + $task = $args{vmview}->PowerOnVM_Task(host=>$hyphash{$hyp}->{hostview}); }; if ($@) { sendmsg([1,":".$@],$node); @@ -986,7 +986,7 @@ sub power { $running_tasks{$task}->{data} = { node => $node, successtext => $intent.'reset' }; } elsif ($args{pretendop}) { #It is off, but pretend it was on eval { - $task = $args{vmview}->PowerOnVM_Task(); + $task = $args{vmview}->PowerOnVM_Task(host=>$hyphash{$hyp}->{hostview}); }; if ($@) { sendmsg([1,":".$@],$node);