Skip to content

Commit

Permalink
Apply salt 60003 bug workaround for salt 3005 too
Browse files Browse the repository at this point in the history
Salt 3005 release includes partial fix for saltstack/salt#6003, but
unfortunately it doesn't cover one corner case. Adjust the workaround to
apply for a partially-fixed version too. This is a "backport" of a fix
submitted upstream already.

Fixes QubesOS/qubes-issues#6003
  • Loading branch information
marmarek committed Sep 7, 2022
1 parent 1fa0c70 commit 4366a2b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions qubessalt/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ def salt_call(self, command='state.highstate', return_output=False):
salt_fixup = b"""
if [ -e /etc/fedora-release ]; then
sed -i -e 's/if cached_client is None:/if cached_client is None or cached_client.opts["cachedir"] != self.opts["cachedir"]:/' \\
-e 's/not hasattr(cached_client, "opts")/\\0 or cached_client.opts["cachedir"] != self.opts["cachedir"]/' \\
/usr/lib/python3*/site-packages/salt/utils/jinja.py
fi
"""
Expand Down

0 comments on commit 4366a2b

Please sign in to comment.