mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Replace pass with updated comment for return
This commit is contained in:
parent
1a78878b47
commit
ca306c0860
1 changed files with 2 additions and 1 deletions
|
@ -3359,7 +3359,8 @@ def replace(name,
|
|||
check_res, check_msg = _check_file(name)
|
||||
if not check_res:
|
||||
if ignore_if_missing and 'file not found' in check_msg:
|
||||
pass
|
||||
ret['comment'] = 'No changes needed to be made'
|
||||
return ret
|
||||
else:
|
||||
return _error(ret, check_msg)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue