From: Bin Yang Date: Thu, 2 Mar 2017 05:47:34 +0000 (+0800) Subject: fix bug in subnets API for newton X-Git-Tag: release/mercury~26 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=c36d6d4a26e9ef811ea7bdd3ce1464d39a85b2bc;p=multicloud%2Fopenstack.git fix bug in subnets API for newton Change-Id: Iad7ce19ca320632e6499440df0799333921f4d9b Issue-Id: MULTIVIM-19 Signed-off-by: Bin Yang --- diff --git a/newton/newton/requests/views/subnet.py b/newton/newton/requests/views/subnet.py index b057608d..95e380fc 100644 --- a/newton/newton/requests/views/subnet.py +++ b/newton/newton/requests/views/subnet.py @@ -71,7 +71,7 @@ class Subnets(APIView): else: # convert the key naming in the subnet specified by id old_subnet = content["subnet"] - del content["subnet"] + content.pop("subnet", None) VimDriverUtils.replace_key_by_mapping(old_subnet, self.keys_mapping) content.update(old_subnet)