Skip to content

Commit

Permalink
Fix the mariadb_recovery action (#815)
Browse files Browse the repository at this point in the history
With newer Kolla release it has to be deploy instead of recovery.

Signed-off-by: Christian Berendt <berendt@osism.tech>
  • Loading branch information
berendt authored Mar 13, 2024
1 parent f6b7133 commit c95d073
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions osism/tasks/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,12 +113,7 @@ def run_ansible_in_environment(
action = "backup"
role = "mariadb"
# Hacky workaround. The handling of kolla_action will be revised in the future.
joined_arguments = re.sub(joined_arguments, "", "-e kolla_action=deploy")
elif role in ["mariadb-recovery", "mariadb_recovery"]:
action = "recovery"
role = "mariadb"
# Hacky workaround. The handling of kolla_action will be revised in the future.
joined_arguments = re.sub(joined_arguments, "", "-e kolla_action=deploy")
joined_arguments = re.sub(joined_arguments, "", "-e kolla_action=backup")
else:
action = "deploy"

Expand Down

0 comments on commit c95d073

Please sign in to comment.