зеркало из https://github.com/Azure/ARO-RP.git
Forcing visibility parameters to capitilize
This commit is contained in:
Родитель
6979be1dcc
Коммит
6cf5ea0332
|
@ -175,6 +175,7 @@ def validate_visibility(key):
|
|||
def _validate_visibility(namespace):
|
||||
visibility = getattr(namespace, key)
|
||||
if visibility is not None:
|
||||
visibility = visibility.capitalize()
|
||||
if visibility not in ['Private', 'Public']:
|
||||
raise CLIError("Invalid --%s '%s'." %
|
||||
(key.replace('_', '-'), visibility))
|
||||
|
|
|
@ -70,6 +70,12 @@ def aro_create(cmd, # pylint: disable=too-many-locals
|
|||
else:
|
||||
worker_vm_size = worker_vm_size or 'Standard_D4s_v3'
|
||||
|
||||
if apiserver_visibility is not None:
|
||||
apiserver_visibility = apiserver_visibility.capitalize()
|
||||
|
||||
if ingress_visibility is not None:
|
||||
ingress_visibility = ingress_visibility.capitalize()
|
||||
|
||||
oc = v2020_04_30.OpenShiftCluster(
|
||||
location=location,
|
||||
tags=tags,
|
||||
|
|
Загрузка…
Ссылка в новой задаче