[PATCH] move option debugging in virt-convert

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Move debugging

Move option debugging to a more useful place.

Signed-off-by: John Levon <john.levon@xxxxxxx>

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)

_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/et-mgmt-tools

[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux