-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
This commit is contained in:
jbjohnso 2011-04-08 13:36:56 +00:00
parent 0dc690847c
commit f1d0eaf2b0

View File

@ -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;