mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Cache systemd unit update check per unit, closes #34927
This commit is contained in:
parent
65fba5b4d7
commit
c300615e9d
1 changed files with 1 additions and 1 deletions
|
@ -70,7 +70,7 @@ def _check_for_unit_changes(name):
|
|||
Check for modified/updated unit files, and run a daemon-reload if any are
|
||||
found.
|
||||
'''
|
||||
contextkey = 'systemd._check_for_unit_changes'
|
||||
contextkey = 'systemd._check_for_unit_changes.{0}'.format(name)
|
||||
if contextkey not in __context__:
|
||||
if _untracked_custom_unit_found(name) or _unit_file_changed(name):
|
||||
systemctl_reload()
|
||||
|
|
Loading…
Add table
Reference in a new issue