salt icon indicating copy to clipboard operation
salt copied to clipboard

Module git.latest kills target directory when test=True

Open rmatulat opened this issue 11 years ago • 1 comments

Hi, I have an issue running a single state with test=True not behaving as expected: The state contains a git.latest state with - force=True.

While running the state from the commandline with test=True the target directory will be deleted! Thats not what I would expect while in testmode.

Statefile

salt_master_config:
  git.latest:
    - name: http://gitlab.example.com/saltstack/salt-master-etc-salt.git
    - target: /etc/salt
    - user: root
    - force: True

Called like:

salt 'saltminion*' state.sls saltmaster test=True saltenv=dev

We are on 2015.5.2

Kind regards Ralf

rmatulat avatar Jul 08 '15 08:07 rmatulat

@rall0r, thanks for the report.

jfindlay avatar Jul 09 '15 16:07 jfindlay