File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,11 +9,11 @@ log "* Import Policy Templates to TMC SM ..."
99log " ************************************************************************"
1010
1111DATA_DIR=" data"
12- DIR =" $DATA_DIR /policies/templates"
12+ SRC_DIR =" $DATA_DIR /policies/templates"
1313TEMP_DIR=" $SRC_DIR /$( date +%s) "
1414INTERVAL=2
1515
16- src_templates=" $DIR /templates.yaml"
16+ src_templates=" $SRC_DIR /templates.yaml"
1717templates_temp_dir=" $TEMP_DIR /templates"
1818mkdir -p $templates_temp_dir
1919total_count=$( yq e ' .templates | length' $src_templates )
Original file line number Diff line number Diff line change @@ -6,8 +6,8 @@ source utils/policy-helper.sh
66register_last_words " Import policy assignments"
77
88DATA_DIR=" data"
9- DIR =" $PWD /$DATA_DIR /policies/assignments"
10- TEMP_DIR=" $DIR /$( date +%s) "
9+ SRC_DIR =" $PWD /$DATA_DIR /policies/assignments"
10+ TEMP_DIR=" $SRC_DIR /$( date +%s) "
1111INTERVAL=2
1212
1313import_org_policies () {
@@ -16,7 +16,7 @@ import_org_policies() {
1616 mkdir -p $policies_temp
1717
1818 pushd $policies_temp > /dev/null
19- yq ' .policies[]' -s ' .fullName.name' $DIR /$scope /policies.yaml
19+ yq ' .policies[]' -s ' .fullName.name' $SRC_DIR /$scope /policies.yaml
2020 for p_file in $( ls * .yml)
2121 do
2222 yq -i ' del(.fullName.orgId)' $p_file
You can’t perform that action at this time.
0 commit comments