Skip to content

Commit

Permalink
Fix nginx_stage task to work on Python 3
Browse files Browse the repository at this point in the history
  • Loading branch information
treydock committed Oct 6, 2023
1 parent b80b74e commit 912c92f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tasks/nginx_stage.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,14 @@
cmd.append('--force')
process = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
out, err = process.communicate()
try:
out = out.decode()
except (UnicodeDecodeError, AttributeError):
pass
try:
err = err.decode()
except (UnicodeDecodeError, AttributeError):
pass
exitcode = process.returncode
if exitcode == 0:
if command in ['nginx_clean','nginx_list']:
Expand Down

0 comments on commit 912c92f

Please sign in to comment.