File tree Expand file tree Collapse file tree 2 files changed +10
-5
lines changed
Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments