FIX: changed modules bug

This commit is contained in:
germann_e 2023-08-23 17:24:49 +02:00
parent 960d7c0f88
commit 305bd93db7

View File

@ -155,14 +155,14 @@ def print_pmodules_differences(
changed_module_list = [] changed_module_list = []
# Replace the state of the modules with * for Regex comparison # Replace the state of the modules with * for Regex comparison
new_module_list_no_state = [] new_module_list_no_state = new_module_list.copy()
deleted_module_list_no_state = [] deleted_module_list_no_state = deleted_module_list.copy()
for state in Pmodules_states: for state in Pmodules_states:
new_module_list_no_state = [ new_module_list_no_state = [
diff.replace(state, " .*") for diff in new_module_list diff.replace(state, " .*") for diff in new_module_list_no_state
] ]
deleted_module_list_no_state = [ deleted_module_list_no_state = [
diff.replace(state, " .*") for diff in deleted_module_list diff.replace(state, " .*") for diff in deleted_module_list_no_state
] ]
# Check if the state of the module is the only thing that changed # Check if the state of the module is the only thing that changed