Skip to content

Commit

Permalink
Merge pull request #4274 from ministryofjustice/DBA-584
Browse files Browse the repository at this point in the history
Dba 584
  • Loading branch information
ranbeersingh1 authored Dec 8, 2023
2 parents 7af1d61 + e354de6 commit 89095c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ run_ansible() {
then
group=$(echo "$${environment_name}_$${delius_environment_name}_$${database}" | tr [:upper:] [:lower:] | sed "s/-/_/g")
group_all=$(echo "$${environment_name}_$${delius_environment_name}_all" | tr [:upper:] [:lower:] | sed "s/-/_/g")
database_type=$(echo $database | cut -d'_' -f2 | sed "s/db//g")
[[ $database =~ "primarydb" ]] && database_type="primary" || database_type="standby"
ansible_group_vars="$ansible_group_vars --extra-vars @group_vars/$group.yml --extra-vars @group_vars/$group_all.yml --extra-vars database_type=$database_type"
elif [[ $i -gt 2 ]]
then
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ run_ansible() {
then
group=$(echo "$${environment_name}_$${delius_environment_name}_$${database}" | tr [:upper:] [:lower:] | sed "s/-/_/g")
group_all=$(echo "$${environment_name}_$${delius_environment_name}_all" | tr [:upper:] [:lower:] | sed "s/-/_/g")
database_type=$(echo $database | cut -d'_' -f2 | sed "s/db//g")
[[ $database =~ "primarydb" ]] && database_type="primary" || database_type="standby"
ansible_group_vars="$ansible_group_vars --extra-vars @group_vars/$group.yml --extra-vars @group_vars/$group_all.yml --extra-vars database_type=$database_type"
elif [[ $i -gt 2 ]]
then
Expand Down

0 comments on commit 89095c2

Please sign in to comment.