diff --git a/pmodules_tools/db_diff/check.py b/pmodules_tools/db_diff/check.py index 98122065..ac6e13e0 100644 --- a/pmodules_tools/db_diff/check.py +++ b/pmodules_tools/db_diff/check.py @@ -164,14 +164,14 @@ def print_pmodules_differences( changed_module_list = [] # Replace the state of the modules with * for Regex comparison - new_module_list_no_state = [] - deleted_module_list_no_state = [] + new_module_list_no_state = new_module_list.copy() + deleted_module_list_no_state = deleted_module_list.copy() for state in Pmodules_states: 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 = [ - 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