mirror of
https://github.com/ansible/awx.git
synced 2026-03-08 05:01:09 -02:30
Remove cache control actions from inventory models
This commit is contained in:
@@ -397,7 +397,6 @@ class Host(CommonModelNameNotUnique):
|
|||||||
super(Host, self).mark_inactive(save=save)
|
super(Host, self).mark_inactive(save=save)
|
||||||
if not from_inventory_import:
|
if not from_inventory_import:
|
||||||
self.inventory_sources.clear()
|
self.inventory_sources.clear()
|
||||||
self.clear_cached_values()
|
|
||||||
|
|
||||||
def update_computed_fields(self, update_inventory=True, update_groups=True):
|
def update_computed_fields(self, update_inventory=True, update_groups=True):
|
||||||
'''
|
'''
|
||||||
@@ -429,7 +428,6 @@ class Host(CommonModelNameNotUnique):
|
|||||||
# self.inventory.update_computed_fields(update_groups=False,
|
# self.inventory.update_computed_fields(update_groups=False,
|
||||||
# update_hosts=False)
|
# update_hosts=False)
|
||||||
# Rebuild summary fields cache
|
# Rebuild summary fields cache
|
||||||
self.update_cached_values()
|
|
||||||
variables_dict = VarsDictProperty('variables')
|
variables_dict = VarsDictProperty('variables')
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
|||||||
Reference in New Issue
Block a user