From 0e4b3bdf945d89cc8a4cc614fbe2073426363dff Mon Sep 17 00:00:00 2001 From: Niels Abspoel Date: Wed, 13 Apr 2022 22:52:43 +0200 Subject: [PATCH] fix(pkgrepo): pkgrepo use cmd.shell --- salt/pkgrepo/suse/install.sls | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/salt/pkgrepo/suse/install.sls b/salt/pkgrepo/suse/install.sls index 09eef4d..3ac8fee 100644 --- a/salt/pkgrepo/suse/install.sls +++ b/salt/pkgrepo/suse/install.sls @@ -4,7 +4,7 @@ {#- Resorting to this ugly hack since the state doesn't handle if the `baseurl` is already configured under another name, such as used by the `salt-bootstrap` #} -{%- if not salt["cmd.run"]("zypper lr --uri | grep " ~ salt_settings.pkgrepo) %} +{%- if not salt["cmd.shell"]("zypper lr --uri | grep " ~ salt_settings.pkgrepo) %} salt-pkgrepo-install-saltstack-suse: pkgrepo.managed: - name: systemsmanagement_saltstack_products