Blame SOURCES/bz1384073-fence_compute-fix-connectionerror-exception.patch

217e50
From e7010cc1fe50866c54e98ba6775714445bdb8c80 Mon Sep 17 00:00:00 2001
217e50
From: Oyvind Albrigtsen <oalbrigt@redhat.com>
217e50
Date: Mon, 17 Oct 2016 12:45:00 +0200
217e50
Subject: [PATCH] fence_compute: fix ConnectionError by using full module name
217e50
217e50
---
217e50
 fence/agents/compute/fence_compute.py | 2 +-
217e50
 1 file changed, 1 insertion(+), 1 deletion(-)
217e50
217e50
diff --git a/fence/agents/compute/fence_compute.py b/fence/agents/compute/fence_compute.py
217e50
index 0f05c12..ed51c25 100644
217e50
--- a/fence/agents/compute/fence_compute.py
217e50
+++ b/fence/agents/compute/fence_compute.py
217e50
@@ -45,7 +45,7 @@ def get_power_status(_, options):
217e50
 					else:
217e50
 						logging.debug("Unknown status detected from nova: " + service.state)
217e50
 					break
217e50
-		except ConnectionError as err:
217e50
+		except requests.exception.ConnectionError as err:
217e50
 			logging.warning("Nova connection failed: " + str(err))
217e50
 	return status
217e50