Skip to content

Commit

Permalink
Replaced proc.return code with var
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaume Florez committed Mar 14, 2017
1 parent b5a2f30 commit 5c58842
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions hookshub/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,16 @@ def run_action(action, hook, conf):
logger.error('[{}]:ProcErr:\n{}'.format(
action, stderr.replace('|', '\n')
))
if proc.returncode != 0:
returncode = proc.returncode
if returncode != 0:
logger.error('[{0}]:Failed!\n'.format(
action
))
else:
logger.error('[{0}]:Success!\n'.format(
action
))
return stdout, stderr, proc.returncode, pid
return stdout, stderr, returncode, pid


def log_result(res):
Expand Down

0 comments on commit 5c58842

Please sign in to comment.