feat(config_management): save_history method added to Config Group Hosts
ref: #605 #637
This commit is contained in:
@ -421,7 +421,18 @@ class ConfigGroupHosts(GroupsCommonFields, SaveHistory):
|
||||
|
||||
return self.group
|
||||
|
||||
def save_history(self, before: dict, after: dict) -> bool:
|
||||
|
||||
from config_management.models.config_groups_hosts_history import ConfigGroupHostsHistory
|
||||
|
||||
history = super().save_history(
|
||||
before = before,
|
||||
after = after,
|
||||
history_model = ConfigGroupHostsHistory,
|
||||
)
|
||||
|
||||
|
||||
return history
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user