diff --git a/plugins/modules/azure_rm_aks.py b/plugins/modules/azure_rm_aks.py index 13b2e32a9..a40b2ae4e 100644 --- a/plugins/modules/azure_rm_aks.py +++ b/plugins/modules/azure_rm_aks.py @@ -689,7 +689,7 @@ def compare_addon(origin, patch, config): if self.addon: for key in ADDONS.keys(): addon_name = ADDONS[key]['name'] - if not compare_addon(response['addon'].get(addon_name), self.addon.get(key), ADDONS[key].get('config')): + if not compare_addon(response['addon'].get(addon_name.lower()), self.addon.get(key), ADDONS[key].get('config')): to_be_updated = True for profile_result in response['agent_pool_profiles']: diff --git a/tests/integration/targets/azure_rm_aks/tasks/main.yml b/tests/integration/targets/azure_rm_aks/tasks/main.yml index ce84ebf1d..bd122ecf5 100644 --- a/tests/integration/targets/azure_rm_aks/tasks/main.yml +++ b/tests/integration/targets/azure_rm_aks/tasks/main.yml @@ -158,7 +158,7 @@ that: - output.changed - output.kubernetes_version == version1.azure_aks_versions[0] - - output.addon.httpApplicationRouting.enabled == True + - output.addon.httpapplicationrouting.enabled == true - output.agent_pool_profiles[0].count == 1 - output.network_profile.network_plugin == 'kubenet'