summaryrefslogtreecommitdiffstats
path: root/createVpd.py
diff options
context:
space:
mode:
authorJason Albert <albertj@us.ibm.com>2015-06-25 21:41:39 -0500
committerJason Albert <albertj@us.ibm.com>2015-06-25 21:41:39 -0500
commit84f8f68c8cb4a16d9fb022a595bede4fe708bff3 (patch)
tree31cbd0c43b9f061d21cea00d095c1f16d1a21913 /createVpd.py
parent1cf54d70091e70b623799dac95739593445de990 (diff)
downloadvpdtools-84f8f68c8cb4a16d9fb022a595bede4fe708bff3.tar.gz
vpdtools-84f8f68c8cb4a16d9fb022a595bede4fe708bff3.zip
Fixed a bug in bad path handling for output path
Diffstat (limited to 'createVpd.py')
-rwxr-xr-xcreateVpd.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/createVpd.py b/createVpd.py
index 9eb46de..6080ff9 100755
--- a/createVpd.py
+++ b/createVpd.py
@@ -333,7 +333,7 @@ rc = 0
################################################
# Command line options
# Create the argparser object
-# We disable auto help options here and add them manually below. This is we can get everything in 1 group
+# We disable auto help options here and add them manually below. This is we can get all the optional args in 1 group
parser = argparse.ArgumentParser(description='The VPD image creation tool', add_help=False, formatter_class=argparse.RawDescriptionHelpFormatter,
epilog=textwrap.dedent('''\
Examples:
@@ -370,7 +370,7 @@ clOutputPath = args.outpath
if (os.path.exists(clOutputPath) != True):
out.error("The given output path %s does not exist!" % clOutputPath)
out.error("Please create the output directory and run again")
- clErrors+=1
+ exit(1)
# Look for input path
clInputPath = args.inpath
OpenPOWER on IntegriCloud