From a6f4e35bb3de1b2b2fb3367ea853e66f5ec97b03 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Mon, 9 May 2011 16:32:39 +0000 Subject: [PATCH] Fix wvid hang on KVM guests if guest is off git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9522 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/kvm.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/kvm.pm b/xCAT-server/lib/xcat/plugins/kvm.pm index 1274a3d16..be9c1d4d0 100644 --- a/xCAT-server/lib/xcat/plugins/kvm.pm +++ b/xCAT-server/lib/xcat/plugins/kvm.pm @@ -693,8 +693,8 @@ sub getcons { sub getrvidparms { my $node=shift; my $location = getcons($node,"vid"); - unless ($location) { - return (1,"Error: Unable to determine rvid destination for $node"); + unless (ref $location) { + return (1,"Error: Unable to determine rvid destination for $node (appears VM is off)"); } my @output = ( "method: kvm"