Page MenuHomeDevCentral

Fix Salt file.managed state without content replacement
ClosedPublic

Authored by dereckson on Feb 16 2018, 20:51.
Tags
None
Referenced Files
F3768395: D1313.diff
Sat, Nov 23, 07:45
Unknown Object (File)
Fri, Nov 15, 23:55
Unknown Object (File)
Thu, Nov 14, 09:15
Unknown Object (File)
Wed, Nov 13, 06:15
Unknown Object (File)
Tue, Nov 12, 04:46
Unknown Object (File)
Mon, Nov 11, 15:54
Unknown Object (File)
Thu, Nov 7, 19:33
Unknown Object (File)
Thu, Nov 7, 13:01
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.