commit c579d517c5a0a5c95ff24f874e9445ed25245e10
Author: Felipe Reyes <email address hidden>
Date: Thu May 5 15:03:58 2022 -0400
Catch FileExistsError when creating /etc/corosync dir.
Hooks are expected to be idempotent, if the install hook for whatever
reason needs to be re-run and the /etc/corosync directory already exists,
because for example it was created in a previous run, the exception
FileExistsError will be raised, this change captures the exception and
moves on.
Change-Id: If43a5c95bb59c9cca7f1a975214a9f013ad6f4d6
Closes-Bug: #1971762
(cherry picked from commit 715d31e09f939844bd27f2d4ed8c9207598a5938)
Reviewed: https:/ /review. opendev. org/c/openstack /charm- hacluster/ +/852495 /opendev. org/openstack/ charm-hacluster /commit/ c579d517c5a0a5c 95ff24f874e9445 ed25245e10
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/jammy
commit c579d517c5a0a5c 95ff24f874e9445 ed25245e10
Author: Felipe Reyes <email address hidden>
Date: Thu May 5 15:03:58 2022 -0400
Catch FileExistsError when creating /etc/corosync dir.
Hooks are expected to be idempotent, if the install hook for whatever
reason needs to be re-run and the /etc/corosync directory already exists,
because for example it was created in a previous run, the exception
FileExistsError will be raised, this change captures the exception and
moves on.
Change-Id: If43a5c95bb59c9 cca7f1a975214a9 f013ad6f4d6 4bd27f2d4ed8c92 07598a5938)
Closes-Bug: #1971762
(cherry picked from commit 715d31e09f93984