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