break loop on finding key
This commit is contained in:
parent
475a0c7738
commit
ed67ed604b
1 changed files with 1 additions and 0 deletions
|
@ -55,6 +55,7 @@ def parse_device_dict(xml_dict: dict) -> Dict:
|
||||||
schema_key = m[1][0]
|
schema_key = m[1][0]
|
||||||
root = m[2][5]
|
root = m[2][5]
|
||||||
xml_dict = flatten_keys(xml_dict, "{%s}" % schema_key)[root]
|
xml_dict = flatten_keys(xml_dict, "{%s}" % schema_key)[root]
|
||||||
|
break
|
||||||
result = {}
|
result = {}
|
||||||
for k, v in xml_dict.items():
|
for k, v in xml_dict.items():
|
||||||
if isinstance(xml_dict[k], dict):
|
if isinstance(xml_dict[k], dict):
|
||||||
|
|
Loading…
Reference in a new issue