Skip to content

Commit

Permalink
fix update (#3808)
Browse files Browse the repository at this point in the history
  • Loading branch information
FumingZhang authored Aug 23, 2021
1 parent 3fe8868 commit 440841d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/aks-preview/azext_aks_preview/custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -1790,10 +1790,9 @@ def aks_update(cmd, # pylint: disable=too-many-statements,too-many-branches,
raise ArgumentUsageError('--disable-public-fqdn cannot be applied for none mode private dns zone cluster')
instance.api_server_access_profile.enable_private_cluster_public_fqdn = False

if instance.auto_upgrade_profile is None:
instance.auto_upgrade_profile = ManagedClusterAutoUpgradeProfile()

if auto_upgrade_channel is not None:
if instance.auto_upgrade_profile is None:
instance.auto_upgrade_profile = ManagedClusterAutoUpgradeProfile()
instance.auto_upgrade_profile.upgrade_channel = auto_upgrade_channel

if not enable_managed_identity and assign_identity:
Expand Down

0 comments on commit 440841d

Please sign in to comment.