HomeDevCentral

Fix Salt file.managed state without content replacement

Description

Fix Salt file.managed state without content replacement

Summary:
Suppress the following warning:

[WARNING ] State for file: /srv/api/data/servers-log-all.json - Neither
'source' nor 'contents' nor 'contents_pillar' nor 'contents_grains'
was defined, yet 'replace' was set to 'True'. As there is no source to
replace the file with, 'replace' has been set to 'False' to avoid reading
the file unnecessarily.

This is a follow-up for 87580901de7f.

Test Plan: salt-call --local state.apply roles/webserver-content/org/nasqueron/api test=True

Reviewers: dereckson

Reviewed By: dereckson

Differential Revision: https://devcentral.nasqueron.org/D1313

Details

Provenance
derecksonAuthored on Feb 16 2018, 21:00
derecksonPushed on Feb 16 2018, 20:59
Reviewer
dereckson
Differential Revision
D1313: Fix Salt file.managed state without content replacement
Parents
rOPS87580901de7f: Serve /servers-log/all.json API request
Branches
Unknown
Tags
Unknown