From f88a31dacf0bfa8dba7357d866c3e5bdece8c05c Mon Sep 17 00:00:00 2001 From: peusterm Date: Wed, 17 May 2017 11:01:09 +0200 Subject: [PATCH] Fix: Made API shutdown more robust --- src/emuvim/api/openstack/openstack_api_endpoint.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/emuvim/api/openstack/openstack_api_endpoint.py b/src/emuvim/api/openstack/openstack_api_endpoint.py index 0235a24..127c3e8 100644 --- a/src/emuvim/api/openstack/openstack_api_endpoint.py +++ b/src/emuvim/api/openstack/openstack_api_endpoint.py @@ -73,4 +73,8 @@ class OpenstackApiEndpoint(): """ for component in self.openstack_endpoints.values(): url = "http://" + component.ip + ":" + str(component.port) + "/shutdown" - requests.get(url) + try: + requests.get(url) + except: + # seems to be stopped + pass -- 2.25.1