We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f581170 commit a87e1d6Copy full SHA for a87e1d6
src/zocalo/configuration/__init__.py
@@ -169,8 +169,11 @@ def activate(
169
envs = zocalo.configuration.argparse.get_specified_environments(
170
arguments=self.environment_cmd_args
171
)
172
- if default and not envs and "default" in self._environments:
173
- envs = ["default"]
+ if default and not envs:
+ if os.environ.get("ZOCALO_DEFAULT_ENV"):
174
+ envs = [os.environ["ZOCALO_DEFAULT_ENV"]]
175
+ elif "default" in self._environments:
176
+ envs = ["default"]
177
for environment in envs:
178
self.activate_environment(environment)
179
return tuple(envs)
0 commit comments