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 = {} failed = {}
missing = {} missing = {}
for key, value in attributes_changes.items(): for key, value in attributes_changes.items():
if key not in ca_keys:
continue
configuration = hier_attrs_by_key.get(key) configuration = hier_attrs_by_key.get(key)
if not configuration: if not configuration:
configuration = cust_attr_by_key.get(key) configuration = cust_attr_by_key.get(key)
if not configuration: if not configuration:
if key in ca_keys: self.log.warning(
self.log.warning( "Custom attribute \"{}\" was not found.".format(key)
"Custom attribute \"{}\" was not found.".format(key) )
) missing[key] = value
missing[key] = value
continue continue
# TODO add add permissions check # TODO add add permissions check