Skip to content

Commit

Permalink
Merge pull request #4 from vpnarea/ab77/operational
Browse files Browse the repository at this point in the history
fix: get_container_id
  • Loading branch information
vpnarea authored Sep 27, 2022
2 parents 83760b5 + 4bef4e1 commit d9d6dc3
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions unzoner/src/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,14 +372,11 @@ def get_container_id():
try:
result = run_shell_cmd(cmd)
if DEBUG: print('run_shell_cmd: {}'.format(result))
assert result[0] == 0
assert result[1]
except Exception as e:
print('{}: e={}'.format(
stack()[0][3],
repr(e)
))
return result[1].strip('\n')
assert result[0] == 0 and result[1]
except Exception:
if DEBUG: print_exc()

return result[1].decode().strip('\n')


@retry(Exception, cdata='method={}'.format(stack()[0][3]))
Expand Down

0 comments on commit d9d6dc3

Please sign in to comment.