From: peusterm Date: Wed, 17 May 2017 09:01:09 +0000 (+0200) Subject: Fix: Made API shutdown more robust X-Git-Tag: v3.1~27^2~5 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=f88a31dacf0bfa8dba7357d866c3e5bdece8c05c;p=osm%2Fvim-emu.git Fix: Made API shutdown more robust --- 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