Skip to content

Commit

Permalink
Merge 4e71e48 into bb75854
Browse files Browse the repository at this point in the history
  • Loading branch information
jlashner committed May 17, 2022
2 parents bb75854 + 4e71e48 commit 9baa072
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ocs/agent/host_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ def _run_docker_compose(args, docker_compose_bin=None):
if docker_compose_bin is None:
docker_compose_bin = shutil.which('docker-compose')
return utils.getProcessOutputAndValue(
docker_compose_bin, args)
docker_compose_bin, args, env=os.environ)


class DockerContainerHelper:
Expand Down Expand Up @@ -370,7 +370,7 @@ def parse_docker_state(docker_compose_file, docker_compose_bin=None):
# Run docker inspect.
for cont_id in cont_ids:
out, err, code = yield utils.getProcessOutputAndValue(
'docker', ['inspect', cont_id])
'docker', ['inspect', cont_id], env=os.environ)
if code != 0 and 'No such object' in err.decode('utf8'):
# This is likely due to a race condition where some
# container was brought down since we ran docker-compose.
Expand Down

0 comments on commit 9baa072

Please sign in to comment.