test: remove unrelated inventory and job template changes

This commit is contained in:
akus062381
2026-10-29 10:29:38 -04:00
parent 730474b256
commit 1582b03ff6
2 changed files with 0 additions and 6 deletions
-1
View File
@@ -1,6 +1,5 @@
# Copyright (c) 2017 Ansible, Inc.
# All Rights Reserved.
# Job template URL routing configuration
from django.urls import include, re_path
-5
View File
@@ -481,11 +481,6 @@ class Inventory(CommonModelNameNotUnique, RelatedJobsMixin, OpaQueryPathMixin):
def save(self, *args, **kwargs):
self._update_host_smart_inventory_memeberships()
super(Inventory, self).save(*args, **kwargs)
update_fields = kwargs.get('update_fields')
if update_fields is None or {'organization', 'organization_id'} & set(update_fields):
# An inventory source takes its organization from its inventory and can't set its own, so keep it in step
# when the inventory moves.
self.inventory_sources.exclude(organization_id=self.organization_id).update(organization_id=self.organization_id)
if self.kind == 'smart' and 'host_filter' in kwargs.get('update_fields', ['host_filter']) and connection.vendor != 'sqlite':
# Minimal update of host_count for smart inventory host filter changes
self.update_computed_fields()