mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #30759 from thusoy/empty-files
Allow managing empty files
This commit is contained in:
commit
ea15628446
1 changed files with 2 additions and 1 deletions
|
@ -1385,8 +1385,9 @@ def managed(name,
|
|||
'name': name,
|
||||
'result': True}
|
||||
|
||||
content_sources = (contents, contents_pillar, contents_grains)
|
||||
contents_count = len(
|
||||
[x for x in (contents, contents_pillar, contents_grains) if x]
|
||||
[x for x in content_sources if x is not None]
|
||||
)
|
||||
|
||||
if source and contents_count > 0:
|
||||
|
|
Loading…
Add table
Reference in a new issue