Skip to content

Commit 48ab007

Browse files
committed
Fix the typo of the variable name
Signed-off-by: Willis Ren <willis.ren@broadcom.com>
1 parent 4ab67c1 commit 48ab007

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

062-base-policy-templates-import.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ log "* Import Policy Templates to TMC SM ..."
99
log "************************************************************************"
1010

1111
DATA_DIR="data"
12-
DIR="$DATA_DIR/policies/templates"
12+
SRC_DIR="$DATA_DIR/policies/templates"
1313
TEMP_DIR="$SRC_DIR/$(date +%s)"
1414
INTERVAL=2
1515

16-
src_templates="$DIR/templates.yaml"
16+
src_templates="$SRC_DIR/templates.yaml"
1717
templates_temp_dir="$TEMP_DIR/templates"
1818
mkdir -p $templates_temp_dir
1919
total_count=$(yq e '.templates | length' $src_templates)

063-base-policy-assignments-import.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ source utils/policy-helper.sh
66
register_last_words "Import policy assignments"
77

88
DATA_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)"
1111
INTERVAL=2
1212

1313
import_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

0 commit comments

Comments
 (0)