skip keys before they're checked

This commit is contained in:
iLLiCiTiT 2021-10-05 10:26:17 +02:00
parent c03ba80974
commit c55ca5af2d

View file

@ -277,15 +277,17 @@ class FtrackModule(
failed = {}
missing = {}
for key, value in attributes_changes.items():
if key not in ca_keys:
continue
configuration = hier_attrs_by_key.get(key)
if not configuration:
configuration = cust_attr_by_key.get(key)
if not configuration:
if key in ca_keys:
self.log.warning(
"Custom attribute \"{}\" was not found.".format(key)
)
missing[key] = value
self.log.warning(
"Custom attribute \"{}\" was not found.".format(key)
)
missing[key] = value
continue
# TODO add add permissions check