Fixes required for OpenShiftVerions API changes

This commit is contained in:
darthhexx 2022-09-28 15:09:52 +10:00
Родитель 9e842a962d
Коммит d47c4a002a
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -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)