Page MenuHomeDevCentral

Fix Salt file.managed state without content replacement
ClosedPublic

Authored by dereckson on Feb 16 2018, 20:51.
Tags
None
Referenced Files
F3930955: D1313.id.diff
Sun, Dec 22, 16:39
Unknown Object (File)
Mon, Dec 9, 09:10
Unknown Object (File)
Mon, Dec 9, 09:09
Unknown Object (File)
Mon, Dec 9, 08:19
Unknown Object (File)
Mon, Dec 9, 08:19
Unknown Object (File)
Sun, Dec 8, 11:26
Unknown Object (File)
Fri, Dec 6, 18:28
Unknown Object (File)
Fri, Dec 6, 12:05
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 Not Applicable
Unit
Tests Not Applicable

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.