From 15b4257c7340f443dfce9cac54616260197eb0dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mario=20H=C3=BCttel?= Date: Sun, 24 Nov 2024 01:42:58 +0100 Subject: [PATCH] Add error output if inconsisten parameters are found on package and components during consolidation progress --- .../commands/consolidate_component_package_parameters.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/shimatta_kenkyusho/parts/management/commands/consolidate_component_package_parameters.py b/shimatta_kenkyusho/parts/management/commands/consolidate_component_package_parameters.py index e66ca5a..09d5c46 100644 --- a/shimatta_kenkyusho/parts/management/commands/consolidate_component_package_parameters.py +++ b/shimatta_kenkyusho/parts/management/commands/consolidate_component_package_parameters.py @@ -34,4 +34,6 @@ class Command(BaseCommand): if s1 == s2: self.stdout.write(f'\tParameter {common_type.parameter_name} is the same value for component and package: {s1}. Removing from component') if not options['dry_run']: - comp_param.delete() \ No newline at end of file + comp_param.delete() + else: + self.stderr.write(f'\tParameter {common_type.parameter_name} is set on component {str(component)} and its package with different values: "{s1}" vs "{s2}"') \ No newline at end of file