Page MenuHomeDevCentral

Fix Salt file.managed state without content replacement
ClosedPublic

Authored by dereckson on Feb 16 2018, 20:51.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Nov 4, 05:20
Unknown Object (File)
Mon, Nov 4, 05:20
Unknown Object (File)
Fri, Nov 1, 06:27
Unknown Object (File)
Sat, Oct 26, 04:07
Unknown Object (File)
Wed, Oct 23, 18:15
Unknown Object (File)
Fri, Oct 18, 10:00
Unknown Object (File)
Thu, Oct 17, 21:34
Unknown Object (File)
Thu, Oct 17, 07:06
Subscribers
None

Details

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

Diff Detail

Repository
rOPS Nasqueron Operations
Lint
Lint Passed
Unit
No Test Coverage
Branch
fix-D1310 (branched from master)
Build Status
Buildable 2078
Build 2326: arc lint + arc unit

Event Timeline

dereckson created this revision.
dereckson edited the summary of this revision. (Show Details)
dereckson edited the test plan for this revision. (Show Details)
This revision is now accepted and ready to land.Feb 16 2018, 20:57
This revision was automatically updated to reflect the committed changes.