Make lack of 'numvcpus' a warning only

A .vmx file without 'numvcpus' seems common. Make the warning be a
debug-only message.

Signed-off-by: John Levon <[EMAIL PROTECTED]>

diff --git a/virt-unpack b/virt-unpack
--- a/virt-unpack
+++ b/virt-unpack
@@ -119,7 +119,7 @@ def vmx_to_image_xml(disks_list,record,o
     if record.has_key("numvcpus"):
         vcpus = record["numvcpus"]
     else:  
-        logging.error("numvcpus key not parsed from %s, defaulting to 1 
virtual cpu" % file)
+        logging.warning("numvcpus key not parsed from %s, defaulting to 1 
virtual cpu" % file)
         vcpus = "1"
 
    

_______________________________________________
et-mgmt-tools mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/et-mgmt-tools

Reply via email to