Merge "Optimize the name of the variable in the function"
This commit is contained in:
commit
5c0d81b5fe
|
@ -131,10 +131,10 @@ class OvsDBParser(object):
|
||||||
def _parse_ovsdb_interfaces(self, interfaces):
|
def _parse_ovsdb_interfaces(self, interfaces):
|
||||||
interfaces_list = interfaces.split("\n\n")
|
interfaces_list = interfaces.split("\n\n")
|
||||||
interfaces_as_dicts = []
|
interfaces_as_dicts = []
|
||||||
for inteface in interfaces_list:
|
for interface in interfaces_list:
|
||||||
if len(inteface) == 0:
|
if len(interface) == 0:
|
||||||
continue
|
continue
|
||||||
fs = inteface.split("\n")
|
fs = interface.split("\n")
|
||||||
res = {}
|
res = {}
|
||||||
for item in fs:
|
for item in fs:
|
||||||
if item.startswith('external_ids'):
|
if item.startswith('external_ids'):
|
||||||
|
|
Loading…
Reference in New Issue