Skip to content

Commit 139e6e1

Browse files
committed
Lint
1 parent a1014c1 commit 139e6e1

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

  • src/azure-cli/azure/cli/command_modules/acs

src/azure-cli/azure/cli/command_modules/acs/custom.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1626,11 +1626,10 @@ def aks_enable_addons(cmd, client, resource_group_name, name, addons,
16261626
str(instance.addon_profiles[monitoring_addon_key].config[CONST_MONITORING_USING_AAD_MSI_AUTH]).lower() == 'true':
16271627
if msi_auth:
16281628
# Auto-enable HLSM when CNL is active and HLSM not explicitly set
1629-
if enable_high_log_scale_mode is None:
1630-
addon_config = instance.addon_profiles[monitoring_addon_key].config or {}
1631-
cnl_flag = addon_config.get("enableRetinaNetworkFlags", "").lower()
1632-
if cnl_flag == "true":
1633-
enable_high_log_scale_mode = True
1629+
if enable_high_log_scale_mode is None and \
1630+
(instance.addon_profiles[monitoring_addon_key].config or {}).get(
1631+
"enableRetinaNetworkFlags", "").lower() == "true":
1632+
enable_high_log_scale_mode = True
16341633
# create a Data Collection Rule (DCR) and associate it with the cluster
16351634
ensure_container_insights_for_monitoring(
16361635
cmd, instance.addon_profiles[monitoring_addon_key],

0 commit comments

Comments
 (0)