diff options
-rw-r--r-- | newton/newton/requests/views/subnet.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) |