mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
Remove len() in favor of boolean test
This commit is contained in:
parent
4373408163
commit
b83392edea
@ -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…
Reference in New Issue
Block a user