From c36d6d4a26e9ef811ea7bdd3ce1464d39a85b2bc Mon Sep 17 00:00:00 2001 From: Bin Yang Date: Thu, 2 Mar 2017 13:47:34 +0800 Subject: fix bug in subnets API for newton Change-Id: Iad7ce19ca320632e6499440df0799333921f4d9b Issue-Id: MULTIVIM-19 Signed-off-by: Bin Yang --- newton/newton/requests/views/subnet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'newton') 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) -- cgit 1.2.3-korg