mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Bump log level from debug to warning on empty file
This commit is contained in:
parent
5f181cf00d
commit
c792f76d2f
1 changed files with 1 additions and 1 deletions
|
@ -1513,7 +1513,7 @@ def line(path, content, match=None, mode=None, location=None,
|
|||
|
||||
elif mode == 'replace':
|
||||
if os.stat(path).st_size == 0:
|
||||
log.debug('Cannot find text to replace. File \'{0}\' is empty.'.format(path))
|
||||
log.warning('Cannot find text to replace. File \'{0}\' is empty.'.format(path))
|
||||
body = ''
|
||||
else:
|
||||
body = os.linesep.join([(_get_line_indent(file_line, content, indent)
|
||||
|
|
Loading…
Add table
Reference in a new issue