[et-mgmt-tools] [PATCH] move option debugging in virt-convert

John Levon levon at movementarian.org
Wed Jul 2 04:49:43 UTC 2008


Move debugging

Move option debugging to a more useful place.

Signed-off-by: John Levon <john.levon at sun.com>

diff --git a/virt-convert b/virt-convert
--- a/virt-convert
+++ b/virt-convert
@@ -249,11 +250,6 @@ def main():
 def main():
     options = parse_args()
     cli.setupLogging("virt-convert", options.debug)
-
-    logging.debug("input_file: %s" % options.input_file)
-    logging.debug("input_dir: %s" % options.input_dir)
-    logging.debug("output_file: %s" % options.output_file)
-    logging.debug("output_dir: %s" % options.input_dir)
 
     vm_config = parse_vmware_config(options)
     record, disks_list = vm_config
@@ -280,6 +276,11 @@ def main():
         options.output_file = os.path.join(options.output_dir,
 	    "%s.virt-image.xml" % name)
 
+    logging.debug("input_file: %s" % options.input_file)
+    logging.debug("input_dir: %s" % options.input_dir)
+    logging.debug("output_file: %s" % options.output_file)
+    logging.debug("output_dir: %s" % options.input_dir)
+
     # configuration completed, ready to write config file and convert disks
     out = open(options.output_file, "w")
     out.writelines(out_contents)




More information about the et-mgmt-tools mailing list