Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/schema/schema_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ def generate_triggered_data(trigger_type: TriggerTypeEnum, normalized_class, req
# Get the target trigger method defined in the schema_triggers.py module
trigger_method_to_call = getattr(schema_triggers, trigger_method_name)

target_uuid = existing_entity_dict['uuid'] if existing_entity_dict and 'uuid' in existing_entity_dict else '';
target_uuid = existing_data_dict['uuid'] if existing_data_dict and 'uuid' in existing_data_dict else '';
logger.info(f"To run {trigger_type.value}: {trigger_method_name} for {normalized_class} {target_uuid}")

# No return values for 'after_create_trigger' and 'after_update_trigger'
Expand All @@ -442,7 +442,7 @@ def generate_triggered_data(trigger_type: TriggerTypeEnum, normalized_class, req
try:
trigger_method_to_call = getattr(schema_triggers, trigger_method_name)

target_uuid = existing_entity_dict['uuid'] if existing_entity_dict and 'uuid' in existing_entity_dict else '';
target_uuid = existing_data_dict['uuid'] if existing_data_dict and 'uuid' in existing_data_dict else '';
logger.info(f"To run {trigger_type.value}: {trigger_method_name} for {normalized_class} {target_uuid}")

# Will set the trigger return value as the property value by default
Expand Down Expand Up @@ -490,7 +490,7 @@ def generate_triggered_data(trigger_type: TriggerTypeEnum, normalized_class, req
try:
trigger_method_to_call = getattr(schema_triggers, trigger_method_name)

target_uuid = existing_entity_dict['uuid'] if existing_entity_dict and 'uuid' in existing_entity_dict else '';
target_uuid = existing_data_dict['uuid'] if existing_data_dict and 'uuid' in existing_data_dict else '';
logger.info(f"To run {trigger_type.value}: {trigger_method_name} for {normalized_class} {target_uuid}")

# Will set the trigger return value as the property value by default
Expand Down