Skip to content

Commit 88e6a5b

Browse files
author
Murat Bulat
committed
custom_attribute_exclude
1 parent 8d9d1bd commit 88e6a5b

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

module/sources/vmware/connection.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -814,11 +814,6 @@ def get_object_custom_fields(self, obj):
814814
key = grab(obj_custom_field, "key")
815815
value = grab(obj_custom_field, "value")
816816

817-
if self.settings.custom_attribute_exclude is not None and \
818-
key in self.settings.custom_attribute_exclude:
819-
log.debug(f"Custom attribute '{key}' excluded from sync. Skipping")
820-
continue
821-
822817
if key is None or value is None:
823818
continue
824819

@@ -827,6 +822,11 @@ def get_object_custom_fields(self, obj):
827822
if label is None:
828823
continue
829824

825+
if self.settings.custom_attribute_exclude is not None and \
826+
label in self.settings.custom_attribute_exclude:
827+
log.debug(f"Custom attribute '{label}' excluded from sync. Skipping")
828+
continue
829+
830830
custom_field = self.add_update_custom_field({
831831
"name": f"vcsa_{label}",
832832
"label": label,

0 commit comments

Comments
 (0)