diff --git a/python/az/aro/azext_aro/custom.py b/python/az/aro/azext_aro/custom.py index 72efaedb1..aa37e7b06 100644 --- a/python/az/aro/azext_aro/custom.py +++ b/python/az/aro/azext_aro/custom.py @@ -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)