mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Empty string is falsy
This commit is contained in:
parent
7508a1c474
commit
a84bf18bc4
1 changed files with 1 additions and 1 deletions
|
@ -1348,7 +1348,7 @@ def managed(name,
|
|||
|
||||
# If no source is specified, set replace to False, as there is nothing
|
||||
# to replace the file with.
|
||||
src_defined = source or contents or contents_pillar or contents_grains
|
||||
src_defined = source or contents is not None or contents_pillar or contents_grains
|
||||
if not src_defined and replace:
|
||||
replace = False
|
||||
log.warning(
|
||||
|
|
Loading…
Add table
Reference in a new issue