Skip to content

Commit

Permalink
Fix for minor bug introduced in 8bc43de.
Browse files Browse the repository at this point in the history
It was coming up when you do 'qds.py hivecmd run -h'
  • Loading branch information
Rohit Agarwal committed Feb 4, 2015
1 parent 473ab81 commit 640e8ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/qds.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ def checkargs_id(args):

def submitaction(cmdclass, args):
args = cmdclass.parse(args)
args.pop("print_logs") # This is only useful while using the 'run' action.
if args is not None:
args.pop("print_logs") # This is only useful while using the 'run' action.
cmd = cmdclass.create(**args)
print("Submitted %s, Id: %s" % (cmdclass.__name__, cmd.id))
return 0
Expand All @@ -99,8 +99,8 @@ def _getresult(cmdclass, cmd):

def runaction(cmdclass, args):
args = cmdclass.parse(args)
print_logs = args.pop("print_logs") # We don't want to send this to the API.
if args is not None:
print_logs = args.pop("print_logs") # We don't want to send this to the API.
cmd = cmdclass.run(**args)
if print_logs:
sys.stderr.write(cmd.get_log())
Expand Down

0 comments on commit 640e8ae

Please sign in to comment.