Skip to content

Commit

Permalink
use get_bool_from_env from a boolean env var (#579)
Browse files Browse the repository at this point in the history
  • Loading branch information
dvirtz authored Oct 22, 2021
1 parent ac3b6a6 commit e2e0970
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpt/packager.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ def __init__(self, username=None, channel=None, runner=None,
self._docker_image = docker_image or os.getenv("CONAN_DOCKER_IMAGE", None)

# If CONAN_DOCKER_IMAGE is specified, then use docker is True
self.use_docker = (use_docker or os.getenv("CONAN_USE_DOCKER", False) or
self.use_docker = (use_docker or get_bool_from_env("CONAN_USE_DOCKER") or
self._docker_image is not None)

self.docker_conan_home = docker_conan_home or os.getenv("CONAN_DOCKER_HOME", None)
Expand Down

0 comments on commit e2e0970

Please sign in to comment.