зеркало из https://github.com/Azure/ARO-RP.git
Fixes required for OpenShiftVerions API changes
This commit is contained in:
Родитель
9e842a962d
Коммит
d47c4a002a
|
@ -106,7 +106,7 @@ def aro_create(cmd, # pylint: disable=too-many-locals
|
|||
resource_group_id=(f"/subscriptions/{subscription_id}"
|
||||
f"/resourceGroups/{cluster_resource_group or 'aro-' + random_id}"),
|
||||
fips_validated_modules='Enabled' if fips_validated_modules else 'Disabled',
|
||||
install_version=install_version or '',
|
||||
version=install_version or '',
|
||||
|
||||
),
|
||||
service_principal_profile=openshiftcluster.ServicePrincipalProfile(
|
||||
|
@ -227,8 +227,8 @@ def aro_list_admin_credentials(cmd, client, resource_group_name, resource_name,
|
|||
def aro_get_versions(client, location):
|
||||
openshift_verions = client.open_shift_versions.list(location)
|
||||
versions = []
|
||||
for ver in openshift_verions.additional_properties["value"]:
|
||||
versions.append(ver["properties"]["version"])
|
||||
for ver in openshift_verions.value:
|
||||
versions.append(ver.properties.version)
|
||||
return sorted(versions)
|
||||
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче