mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
Fix comparison to None
This commit is contained in:
parent
a37502f0f6
commit
3dc9b0129b
@ -1344,7 +1344,7 @@ def replace(path,
|
||||
raise CommandExecutionError("Exception: {0}".format(exc))
|
||||
|
||||
if not found and (append_if_not_found or prepend_if_not_found):
|
||||
if None == not_found_content:
|
||||
if not_found_content is None:
|
||||
not_found_content = repl
|
||||
if prepend_if_not_found:
|
||||
new_file.insert(0, not_found_content + '\n')
|
||||
|
Loading…
Reference in New Issue
Block a user