Fix: Made API shutdown more robust
authorpeusterm <manuel.peuster@uni-paderborn.de>
Wed, 17 May 2017 09:01:09 +0000 (11:01 +0200)
committerpeusterm <manuel.peuster@uni-paderborn.de>
Wed, 17 May 2017 09:01:09 +0000 (11:01 +0200)
src/emuvim/api/openstack/openstack_api_endpoint.py

index 0235a24..127c3e8 100644 (file)
@@ -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