break loop on finding key

This commit is contained in:
Jack Robison 2018-10-29 13:16:13 -04:00
parent 475a0c7738
commit ed67ed604b
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2

View file

@ -55,6 +55,7 @@ def parse_device_dict(xml_dict: dict) -> Dict:
schema_key = m[1][0]
root = m[2][5]
xml_dict = flatten_keys(xml_dict, "{%s}" % schema_key)[root]
break
result = {}
for k, v in xml_dict.items():
if isinstance(xml_dict[k], dict):