mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Remove len() in favor of boolean test
This commit is contained in:
parent
4373408163
commit
b83392edea
1 changed files with 1 additions and 1 deletions
|
@ -3560,7 +3560,7 @@ def append(name,
|
|||
ret['result'] = True
|
||||
return ret
|
||||
|
||||
if len(append_lines):
|
||||
if append_lines:
|
||||
__salt__['file.append'](name, args=append_lines)
|
||||
ret['comment'] = 'Appended {0} lines'.format(len(append_lines))
|
||||
else:
|
||||
|
|
Loading…
Add table
Reference in a new issue