Make salt-ssh respect --wipe again

This commit is contained in:
jeanluc 2022-11-08 04:30:11 +01:00 committed by Megan Wilhite
parent 7e225f281e
commit 1e54e400d4
2 changed files with 8 additions and 0 deletions

1
changelog/61083.fixed Normal file
View file

@ -0,0 +1 @@
Made salt-ssh respect --wipe again

View file

@ -1205,6 +1205,13 @@ class Single:
opts["grains"][grain] = self.target["grains"][grain]
opts["pillar"] = data.get("pillar")
# Restore --wipe. Note: Since it is also a CLI option, it should not
# be read from cache, hence it is restored here. This is currently only
# of semantic distinction since data_cache has been disabled, so refresh
# above always evaluates to True. TODO: cleanup?
opts["ssh_wipe"] = self.opts.get("ssh_wipe", False)
wrapper = salt.client.ssh.wrapper.FunctionWrapper(
opts,
self.id,