summaryrefslogtreecommitdiff
path: root/bz2183162-fence_aws-2-fail-when-power-action-request-fails.patch
blob: 63ebe1a727bd50bed95b706c9902fd9fd8a616c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
From a2e2432cfec0af9a8a90f9d7fed18759da6f9b0c Mon Sep 17 00:00:00 2001
From: Oyvind Albrigtsen <oalbrigt@redhat.com>
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"] = {