From 247fc79a80bec95c23eac2c1d19b47ed30f7350b Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Thu, 1 Aug 2024 14:21:23 +0000 Subject: automatic import of fence-agents --- ...aws-2-fail-when-power-action-request-fails.patch | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 bz2183162-fence_aws-2-fail-when-power-action-request-fails.patch (limited to 'bz2183162-fence_aws-2-fail-when-power-action-request-fails.patch') diff --git a/bz2183162-fence_aws-2-fail-when-power-action-request-fails.patch b/bz2183162-fence_aws-2-fail-when-power-action-request-fails.patch new file mode 100644 index 0000000..63ebe1a --- /dev/null +++ b/bz2183162-fence_aws-2-fail-when-power-action-request-fails.patch @@ -0,0 +1,21 @@ +From a2e2432cfec0af9a8a90f9d7fed18759da6f9b0c Mon Sep 17 00:00:00 2001 +From: Oyvind Albrigtsen +Date: Thu, 13 Apr 2023 10:14:31 +0200 +Subject: [PATCH] fence_aws: fail when power action request fails + +--- + agents/aws/fence_aws.py | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/agents/aws/fence_aws.py b/agents/aws/fence_aws.py +index 5d1677144..0a375bbec 100644 +--- a/agents/aws/fence_aws.py ++++ b/agents/aws/fence_aws.py +@@ -116,6 +116,7 @@ def set_power_status(conn, options): + except Exception as e: + logger.debug("Failed to power %s %s: %s", \ + options["--action"], options["--plug"], e) ++ fail(EC_STATUS) + + def define_new_opts(): + all_opt["region"] = { -- cgit v1.2.3