From e7048e0cd73d9cb25846261bfb542465e054a34a Mon Sep 17 00:00:00 2001 From: Christian Boltz Date: Nov 14 2023 22:31:39 +0000 Subject: Get rid of misleading variable name WEB_ROLES is misleading because it contains all roles, not only web-related roles. Instead of renaming the variable, fix this by inlining the get_roles.py call. --- diff --git a/bin/test_nginx.sh b/bin/test_nginx.sh index 29357fb..1dc62b7 100755 --- a/bin/test_nginx.sh +++ b/bin/test_nginx.sh @@ -79,9 +79,7 @@ touch_includes() { cp -a /etc/nginx /etc/nginx_orig -WEB_ROLES=( $(bin/get_roles.py) ) - -for role in ${WEB_ROLES[@]}; do +for role in $(bin/get_roles.py); do rolestatus=0 sls_role="salt/role/${role/./\/}.sls" out="$role.txt"