Skip to content

Commit 170b914

Browse files
remove all variable name
Signed-off-by: samuelarogbonlo <[email protected]>
1 parent 0da2710 commit 170b914

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

tf-managed/modules/daily-snapshot/service/init.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,6 @@ for type in "${ADDR[@]}"; do
3333
calibnet)
3434
mv calibnet_cron_job /etc/cron.hourly/
3535
;;
36-
all)
37-
mv -- *_cron_job /etc/cron.hourly/
38-
;;
3936
*)
4037
echo "Error: Invalid network type '$type'"
4138
;;

tf-managed/modules/daily-snapshot/variable.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,11 +112,11 @@ variable "environment" {
112112

113113
variable "snapshot_type" {
114114
type = set(string)
115-
description = "Set of network types for snapshot generation. Valid options: 'mainnet', 'calibnet' or all"
116-
default = ["all"]
115+
description = "Set of network types for snapshot generation. Valid options: 'mainnet' and/or 'calibnet'"
116+
default = ["mainnet", "calibnet"]
117117

118118
validation {
119-
condition = alltrue([for val in var.snapshot_type : contains(["mainnet", "calibnet", "all"], val)])
119+
condition = alltrue([for val in var.snapshot_type : contains(["mainnet", "calibnet"], val)])
120120
error_message = "Allowed values for snapshot_type are 'mainnet' and/or 'calibnet'"
121121
}
122122
}

0 commit comments

Comments
 (0)