From 40ff628c0bab45aedd07ba4005320015a07ccd52 Mon Sep 17 00:00:00 2001 From: Jason Ertel Date: Fri, 9 Oct 2020 11:10:46 -0400 Subject: [PATCH] Replace simple pillar lookup with salt equivalent to ensure quoted values are handled properly --- salt/common/tools/sbin/so-common | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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() {