Skip to content

Commit

Permalink
Added command input validation (Check for config.yml)
Browse files Browse the repository at this point in the history
  • Loading branch information
tonynv committed Apr 16, 2018
1 parent fc2017f commit 3abe74e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions taskcat/stacker.py
Original file line number Diff line number Diff line change
Expand Up @@ -2134,10 +2134,17 @@ def interface(self):
print(parser.print_help())
sys.exit(0)

if not args.config_yml:
parser.error("-c (--config_yml) not passed (Config File Required!)")
print(parser.print_help())
sys.exit(1)

if args.multithread_upload:
self.multithread_upload = True

if args.verbose:
self.verbose = True

# Overrides Defaults for cleanup but does not overwrite config.yml
if args.no_cleanup:
self.run_cleanup = False
Expand Down

0 comments on commit 3abe74e

Please sign in to comment.