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)