diff --git a/awx/main/models/__init__.py b/awx/main/models/__init__.py index c284e8e430..b53cbd5c12 100644 --- a/awx/main/models/__init__.py +++ b/awx/main/models/__init__.py @@ -1116,7 +1116,7 @@ class Credential(CommonModelNameNotUnique): if self.cloud != cloud: self.cloud = cloud if 'cloud' not in update_fields: - update_field.append('cloud') + update_fields.append('cloud') super(Credential, self).save(*args, **kwargs) # After saving a new instance for the first time, set the password # fields and save again.