# HG changeset patch # User john.levon@xxxxxxx # Date 1215697490 25200 # Node ID f5e35abf05eb1fa3b64af2cf2cdcfc26139025fd # Parent af294fad5bde2b91640c55b8f279cbe8f9a41b37 virt-convert: small cleanup fix Only add the directory if we really did create it. Signed-off-by: John Levon <john.levon@xxxxxxx> diff --git a/virt-convert b/virt-convert --- a/virt-convert +++ b/virt-convert @@ -176,8 +176,8 @@ options.output_dir = unixname try: logging.debug("Creating directory %s" % options.output_dir) + os.mkdir(options.output_dir) clean += [ options.output_dir ] - os.mkdir(options.output_dir) except OSError, e: if (e.errno != errno.EEXIST): logging.error("Could not create directory %s: %s" % _______________________________________________ et-mgmt-tools mailing list et-mgmt-tools@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/et-mgmt-tools