X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=osmclient%2Fsol005%2Fns.py;h=992bf0fd12e790094ec91e9a47bf09f55705d3aa;hb=e0de6916445407a98c63e87d88d7276e66c445a0;hp=fe3a2bac7dbe3763491d182191c0285c27651845;hpb=5fbd9a9d9cc20ecb0b49718a231327c81c2ba49d;p=osm%2Fosmclient.git diff --git a/osmclient/sol005/ns.py b/osmclient/sol005/ns.py index fe3a2ba..992bf0f 100644 --- a/osmclient/sol005/ns.py +++ b/osmclient/sol005/ns.py @@ -498,14 +498,13 @@ class Ns(object): endpoint=self._apiBase, postfields_dict=ns ) - if resp: - resp = json.loads(resp) - print(str(resp["id"])) - if not resp or "id" not in resp: raise ClientException( "unexpected response from server - {} ".format(resp) ) + if resp: + resp = json.loads(resp) + print(str(resp["id"])) if wait: # Wait for status for NS instance creation self._wait(resp.get("nslcmop_id"), wait)