HomeDevCentral

Use creates parameter instead of unless: test -f

Description

Use creates parameter instead of unless: test -f

Summary:
2014.7.0 introduced a creates parameter to run only when the
a file doesn't exist.

Reference: https://docs.saltstack.com/en/latest/ref/states/all/salt.states.cmd.html

Test Plan: Check reapply the state is no op

Reviewers: dereckson

Reviewed By: dereckson

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

Details

Provenance
derecksonAuthored on Apr 27 2017, 22:02
derecksonPushed on Apr 27 2017, 22:06
Reviewer
dereckson
Differential Revision
D973: Use creates parameter instead of unless: test -f
Parents
rOPS1649f81cebc1: Filter code by service manager
Branches
Unknown
Tags
Unknown