mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
Fix for a state file change issue, fix for #19833
This commit is contained in:
parent
fd8e4741e6
commit
8e0a9e2715
@ -1307,7 +1307,6 @@ def managed(name,
|
||||
|
||||
try:
|
||||
if __opts__['test']:
|
||||
ret['result'] = None
|
||||
ret['changes'] = __salt__['file.check_managed_changes'](
|
||||
name,
|
||||
source,
|
||||
@ -1322,6 +1321,10 @@ def managed(name,
|
||||
contents,
|
||||
**kwargs
|
||||
)
|
||||
if not ret['changes']:
|
||||
ret['result'] = True
|
||||
else:
|
||||
ret['result'] = None
|
||||
|
||||
if ret['changes']:
|
||||
ret['comment'] = 'The file {0} is set to be changed'.format(name)
|
||||
|
Loading…
Reference in New Issue
Block a user