From 5eaa09b2d0727db89e9b4ac71c9c27f8004afd2f Mon Sep 17 00:00:00 2001 From: SerenaFeng Date: Wed, 29 Mar 2017 13:46:57 +0800 Subject: [PATCH] allow customizing network configure change network update process to allow user add configurations in network.yaml Change-Id: Ie2add73e106fa672fc0612314f98505de93771fe Signed-off-by: SerenaFeng --- code/daisyclient/daisyclient/v1/networks.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/code/daisyclient/daisyclient/v1/networks.py b/code/daisyclient/daisyclient/v1/networks.py index 0267f572..15e70881 100755 --- a/code/daisyclient/daisyclient/v1/networks.py +++ b/code/daisyclient/daisyclient/v1/networks.py @@ -309,11 +309,6 @@ class NetworkManager(base.ManagerWithFind): for field in kwargs: if field in UPDATE_PARAMS: fields[field] = kwargs[field] - elif field == 'return_req_id': - continue - else: - msg = 'update() got an unexpected keyword argument \'%s\'' - raise TypeError(msg % field) hdrs.update(self._network_meta_to_headers(fields)) url = '/v1/networks/%s' % base.getid(network)