remove to_dict method of Network in neutron.py
because network['subnets'] is a list of str. Closes-Bug: #1650097 Change-Id: I55b0c81706051410d7368a067106ff3d821d7b47
This commit is contained in:
parent
79e86e8900
commit
d85a5b4b5d
|
@ -98,11 +98,6 @@ class Agent(NeutronAPIDictWrapper):
|
|||
class Network(NeutronAPIDictWrapper):
|
||||
"""Wrapper for neutron Networks."""
|
||||
|
||||
def to_dict(self):
|
||||
d = dict(super(NeutronAPIDictWrapper, self).to_dict())
|
||||
d['subnets'] = [s.to_dict() for s in d['subnets']]
|
||||
return d
|
||||
|
||||
|
||||
class Subnet(NeutronAPIDictWrapper):
|
||||
"""Wrapper for neutron subnets."""
|
||||
|
|
Loading…
Reference in New Issue