From 305bd93db7f35a220a7513efdd96c4a4f42f48e5 Mon Sep 17 00:00:00 2001 From: germann_e Date: Wed, 23 Aug 2023 17:24:49 +0200 Subject: [PATCH] FIX: changed modules bug --- pmodules_tools/db_diff/check.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pmodules_tools/db_diff/check.py b/pmodules_tools/db_diff/check.py index 1841ff2a..5b7044ca 100644 --- a/pmodules_tools/db_diff/check.py +++ b/pmodules_tools/db_diff/check.py @@ -155,14 +155,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