Commit 0e49c8f9 authored by juga's avatar juga
Browse files

Fix args initializing V3BWLine from lines

parent e62a0354
......@@ -278,7 +278,11 @@ class V3BWLine(object):
for k, v in kwargs.items():
if k in BW_KEYVALUES_INT:
kwargs[k] = int(v)
bw_line = cls(**kwargs)
node_id = kwargs['node_id']
bw = kwargs['bw']
del kwargs['node_id']
del kwargs['bw']
bw_line = cls(node_id, bw, **kwargs)
return bw_line
@staticmethod
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment