[Kimchi-devel] [PATCH] [Kimchi] Fix issue on network update

Lucio Correia luciojhc at linux.vnet.ibm.com
Mon May 16 19:54:33 UTC 2016


When network is not renamed, we need 'name' value in info
dict, since name will not be returned by GET.

Signed-off-by: Lucio Correia <luciojhc at linux.vnet.ibm.com>
---
 model/networks.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/model/networks.py b/model/networks.py
index 333ea6d..cc59ca8 100644
--- a/model/networks.py
+++ b/model/networks.py
@@ -504,8 +504,8 @@ class NetworkModel(object):
 
     def update(self, name, params):
         info = self.lookup(name)
+        info['name'] = name
         original = copy.deepcopy(info)
-        original['name'] = name
 
         # validate update parameters
         connection = info['connection']
-- 
1.9.1




More information about the Kimchi-devel mailing list