[et-mgmt-tools] [PATCH 05 of 11] virt-convert: small cleanup fix
john.levon at sun.com
john.levon at sun.com
Thu Jul 10 13:48:35 UTC 2008
# HG changeset patch
# User john.levon at sun.com
# 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 at sun.com>
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" %
More information about the et-mgmt-tools
mailing list