Skip to content

Commit 5ff2e6c

Browse files
authored
fix: fix ocm operator policy json
1 parent 36501e7 commit 5ff2e6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/scripts/generate-iam.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ aws iam get-policy --policy-arn=${OCM_POLICY_ARN}
6868
if [ $? != 0 ]; then
6969
echo "missing ocm operator policy...creating from '${OCM_POLICY_FILE}'..."
7070
policy=$(curl -s "${OCM_POLICY_FILE}")
71-
new_policy=${new_policy//\$OCM_ROLE_RESOURCE_FILTER/$OCM_ROLE_RESOURCE_FILTER}
71+
new_policy=${policy//\$OCM_ROLE_RESOURCE_FILTER/$OCM_ROLE_RESOURCE_FILTER}
7272
new_policy=${new_policy//\$OCM_POLICY_RESOURCE_FILTER/$OCM_POLICY_RESOURCE_FILTER}
7373
aws iam create-policy \
7474
--policy-name "${OCM_POLICY_NAME}" \

0 commit comments

Comments
 (0)