Commit e8747b5
Fix operator precedence bug in get_container_network_logs() validation
The validation logic had two issues:
1. Operator precedence bug - the condition evaluated as
(enable_cnl AND acns_not_enabled) OR monitoring_not_enabled
which would error if monitoring wasn't configured, regardless of enable_cnl
2. Timing issue during cluster create - the validation only checked
mc.addon_profiles, but during create this is empty even when
--enable-addons monitoring is specified
Fix: Check both mc.addon_profiles (for update) AND --enable-addons
parameter (for create), with correct operator precedence.1 parent 158e302 commit e8747b5
File tree
1 file changed
+25
-10
lines changed- src/aks-preview/azext_aks_preview
1 file changed
+25
-10
lines changedLines changed: 25 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
941 | 941 | | |
942 | 942 | | |
943 | 943 | | |
944 | | - | |
945 | | - | |
946 | | - | |
947 | | - | |
948 | | - | |
949 | | - | |
950 | | - | |
951 | | - | |
952 | | - | |
953 | | - | |
| 944 | + | |
| 945 | + | |
| 946 | + | |
| 947 | + | |
| 948 | + | |
| 949 | + | |
| 950 | + | |
| 951 | + | |
| 952 | + | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
| 958 | + | |
| 959 | + | |
954 | 960 | | |
| 961 | + | |
| 962 | + | |
| 963 | + | |
| 964 | + | |
| 965 | + | |
| 966 | + | |
| 967 | + | |
| 968 | + | |
| 969 | + | |
955 | 970 | | |
956 | 971 | | |
957 | 972 | | |
| |||
0 commit comments