Skip to content

Commit 25dc625

Browse files
committed
terraformscaffold v1.3.1
1 parent 202957f commit 25dc625

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 1.3.1 (27/07/2017)
2+
3+
* Change from error to warn on non-presence of requested group variables file
4+
15
## 1.3.0 (26/07/2017)
26

37
* Introduce the group variables file functionality

bin/terraform.sh

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
##
99
# Set Script Version
1010
##
11-
readonly script_ver="1.3.0";
11+
readonly script_ver="1.3.1";
1212

1313
##
1414
# Standardised failure function
@@ -445,10 +445,11 @@ else
445445
# global and region-global variables, but before the environment variables
446446
# so that the environment can explicitly override variables defined in the group.
447447
if [ -n "${group}" ]; then
448-
[ -f "${group_vars_file_path}" ] \
449-
|| error_and_die "Group \"${group}\" has been specified, but no group variables file is available at ${group_vars_file_path}";
450-
451-
tf_var_file_paths+=("${group_vars_file_path}");
448+
if [ -f "${group_vars_file_path}" ]; then
449+
tf_var_file_paths+=("${group_vars_file_path}");
450+
else
451+
echo -e "[WARNING] Group \"${group}\" has been specified, but no group variables file is available at ${group_vars_file_path}";
452+
fi;
452453
fi;
453454

454455
# We've already checked this is readable and its presence is mandatory

0 commit comments

Comments
 (0)