diff --git a/lib/ansible/modules/cloud/azure/azure_rm_containerregistry.py b/lib/ansible/modules/cloud/azure/azure_rm_containerregistry.py index 63e92e76364..43ded0a99bc 100644 --- a/lib/ansible/modules/cloud/azure/azure_rm_containerregistry.py +++ b/lib/ansible/modules/cloud/azure/azure_rm_containerregistry.py @@ -274,7 +274,7 @@ class AzureRMContainerRegistry(AzureRMModuleBase): to_do = Actions.NoAction if (self.location is not None) and self.location != response['location']: to_do = Actions.Update - elif (self.sku is not None) and self.location != response['sku']: + elif (self.sku is not None) and self.sku != response['sku']: to_do = Actions.Update else: to_do = Actions.NoAction