Skip to content

Commit 0ab4628

Browse files
committed
Fix cli usage of could environment - unification of naming convention
Depends on #43
1 parent a527d27 commit 0ab4628

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Diff for: osia/cli.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def _read_list(in_str: str) -> List[str]:
3636
'common': {
3737
'cloud': {'help': 'Cloud provider to be used.', 'type': str,
3838
'choices': ['openstack', 'aws']},
39-
'cloud_environment': {'help': 'Environment of cloud to be used.', 'type': str},
39+
'cloud_env': {'help': 'Environment of cloud to be used.', 'type': str},
4040
'dns_provider': {'help': 'Provider of dns used with openstack cloud',
4141
'type': str, 'choices': ['nsupdate', 'route53']}
4242
},

Diff for: osia/config/config.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ def _resolve_cloud_name(args: argparse.Namespace) -> Optional[Dict]:
2626
'removed in future releases.')
2727
return defaults['CLOUD'][args.cloud]
2828
default_env = defaults['CLOUD'][args.cloud].get('cloud_env', None) \
29-
if args.cloud_environment is None else \
30-
args.cloud_environment
29+
if args.cloud_env is None else \
30+
args.cloud_env
3131
if default_env is None:
3232
logging.error("Couldn't resolve default environment")
3333
raise Exception("Invalid environment setup, cloud_env is missing")

0 commit comments

Comments
 (0)