From f1d0eaf2b02e7c3eae009366cf56ec820c0f2935 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Fri, 8 Apr 2011 13:36:56 +0000 Subject: [PATCH] -Don't attempt to inventory a VM with a missing 'config' git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9256 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/esx.pm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xCAT-server/lib/xcat/plugins/esx.pm b/xCAT-server/lib/xcat/plugins/esx.pm index ac16a594b..6d85dc3c7 100644 --- a/xCAT-server/lib/xcat/plugins/esx.pm +++ b/xCAT-server/lib/xcat/plugins/esx.pm @@ -574,6 +574,10 @@ sub inv { return; } } + if (not $args{vmview}->{config}) { + xCAT::SvrUtils::sendmsg([1,"VM is in an invalid state"], $output_handler,$node); + return; + } @ARGV= @{$args{exargs}}; require Getopt::Long;