diff --git a/salt/common/tools/sbin/so-common b/salt/common/tools/sbin/so-common index e5ed79413..b1dd425f8 100755 --- a/salt/common/tools/sbin/so-common +++ b/salt/common/tools/sbin/so-common @@ -33,12 +33,12 @@ header() { lookup_pillar() { key=$1 - cat /opt/so/saltstack/local/pillar/global.sls | grep $key | awk '{print $2}' + salt-call --no-color pillar.get global:${key} --out=newline_values_only } lookup_pillar_secret() { key=$1 - cat /opt/so/saltstack/local/pillar/secrets.sls | grep $key | awk '{print $2}' + salt-call --no-color pillar.get secrets:${key} --out=newline_values_only } check_container() {