Skip to content

Commit a527d27

Browse files
committed
Fix reference to cloud_env in README and config.py
The readme and error message in config.py have references to a config option `base_env` for specifying the environment when one is not specified on the command line. The config.py code, however, looks for a config option called `cloud_env` (if I'm interpreting the code correctly). This change updates the error message and README to use the proper config option.
1 parent 647a226 commit a527d27

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Diff for: README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ The configuration has following structure:
4848
default:
4949
cloud:
5050
openstack:
51-
base_env: env1
51+
cloud_env: env1
5252
environments:
5353
- name: env1
5454
base_domain: ''
@@ -67,7 +67,7 @@ default:
6767
osp_base_flavor: ''
6868
network_list: []
6969
aws:
70-
base_env: default
70+
cloud_env: default
7171
environments:
7272
- name: default
7373
base_domain: ''

Diff for: osia/config/config.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def _resolve_cloud_name(args: argparse.Namespace) -> Optional[Dict]:
3030
args.cloud_environment
3131
if default_env is None:
3232
logging.error("Couldn't resolve default environment")
33-
raise Exception("Invalid environment setup, base_env is missing")
33+
raise Exception("Invalid environment setup, cloud_env is missing")
3434
for env in defaults['CLOUD'][args.cloud]['environments']:
3535
if env['name'] == default_env:
3636
return env

0 commit comments

Comments
 (0)