remove to_dict method of Network in neutron.py
because network['subnets'] is a list of str.
Closes-Bug: #1650097
Change-Id: I55b0c81706051410d7368a067106ff3d821d7b47
(cherry picked from commit d85a5b4b5d
)
This commit is contained in:
parent
bd8b21b966
commit
71b4787913
|
@ -97,11 +97,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