File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,16 @@ load_dir() {
29
29
30
30
# $3, is the numbers of characters to strip in front of the key
31
31
KEY=" ${KEY: $3 } "
32
+
33
+ # Removes the application.$application_name prefix if it exists
34
+ if [[ " $KEY " == " application.$APPLICATION_NAME ." * ]]; then
35
+ KEY=${KEY# " application.$APPLICATION_NAME ." }
36
+ fi
37
+
38
+ # Removes the .terraform suffix if it exists
39
+ if [[ " $KEY " == * " .terraform" ]]; then
40
+ KEY=${KEY% " .terraform" }
41
+ fi
32
42
33
43
# Removes the infrastructure.global. prefix if it exists
34
44
if [[ " $KEY " == " infrastructure.global." * ]]; then
@@ -49,16 +59,6 @@ load_dir() {
49
59
if [[ " $KEY " == " application." * ]]; then
50
60
KEY=${KEY# " application." }
51
61
fi
52
-
53
- # Removes the application.$application_name prefix if it exists
54
- if [[ " $KEY " == " application.$APPLICATION_NAME ." * ]]; then
55
- KEY=${KEY# " application.$APPLICATION_NAME ." }
56
- fi
57
-
58
- # Removes the .terraform suffix if it exists
59
- if [[ " $KEY " == * " .terraform" ]]; then
60
- KEY=${KEY% " .terraform" }
61
- fi
62
62
63
63
log " source=$FILENAME destination=$KEY "
64
64
You can’t perform that action at this time.
0 commit comments