File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ def _read_list(in_str: str) -> List[str]:
36
36
'common' : {
37
37
'cloud' : {'help' : 'Cloud provider to be used.' , 'type' : str ,
38
38
'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 },
40
40
'dns_provider' : {'help' : 'Provider of dns used with openstack cloud' ,
41
41
'type' : str , 'choices' : ['nsupdate' , 'route53' ]}
42
42
},
Original file line number Diff line number Diff line change @@ -26,8 +26,8 @@ def _resolve_cloud_name(args: argparse.Namespace) -> Optional[Dict]:
26
26
'removed in future releases.' )
27
27
return defaults ['CLOUD' ][args .cloud ]
28
28
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
31
31
if default_env is None :
32
32
logging .error ("Couldn't resolve default environment" )
33
33
raise Exception ("Invalid environment setup, cloud_env is missing" )
You can’t perform that action at this time.
0 commit comments