diff --git a/awx/main/models/inventory.py b/awx/main/models/inventory.py index 8dde9f3b3b..b51e558a8b 100644 --- a/awx/main/models/inventory.py +++ b/awx/main/models/inventory.py @@ -309,7 +309,8 @@ class Inventory(CommonModel, ResourceMixin): else: computed_fields.pop(field) if computed_fields: - iobj.save(update_fields=computed_fields.keys()) + if len(computed_fields) > 0: + iobj.save(update_fields=computed_fields.keys()) logger.debug("Finished updating inventory computed fields") @property