From: Jiri Pirko jiri@mellanox.com
Just fill-up command["netns"] even in case it is None. The rest of the code counts on the key being there.
Fixes: 3ab35292 ("Machine: introduce helper method _rpc_call_x") Signed-off-by: Jiri Pirko jiri@mellanox.com --- lnst/Controller/Machine.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/lnst/Controller/Machine.py b/lnst/Controller/Machine.py index 12f8757..7281203 100644 --- a/lnst/Controller/Machine.py +++ b/lnst/Controller/Machine.py @@ -654,8 +654,7 @@ class Interface(object): {"name": "/sys/class/net/%s/mtu" % self._devname, "value": str(mtu)} ]} - if self._netns != None: - command["netns"] = self._netns + command["netns"] = self._netns
self._machine.run_command(command) self._mtu = mtu
lnst-developers@lists.fedorahosted.org