Skip to content

Commit

Permalink
Create identity for appliances (#165)
Browse files Browse the repository at this point in the history
Co-authored-by: Gaurav Gupta <[email protected]>
  • Loading branch information
ggaurav10 and Gaurav Gupta authored Aug 15, 2022
1 parent 6e07d2d commit 0662a37
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/k8s-extension/azext_k8s_extension/custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -412,11 +412,8 @@ def __create_identity(cmd, resource_group_name, cluster_name, cluster_type, clus
subscription_id = get_subscription_id(cmd.cli_ctx)
resources = cf_resources(cmd.cli_ctx, subscription_id)

# We do not create any identities for managedClusters or appliances
if (
cluster_type.lower() == consts.MANAGED_CLUSTER_TYPE
or cluster_type.lower() == consts.APPLIANCE_TYPE
):
# We do not create any identities for managedClusters
if cluster_type.lower() == consts.MANAGED_CLUSTER_TYPE:
return None, None

cluster_rp, parent_api_version = get_cluster_rp_api_version(cluster_type=cluster_type, cluster_rp=cluster_rp)
Expand Down

0 comments on commit 0662a37

Please sign in to comment.