diff options
author | Michal Jagiello <michal.jagiello@t-mobile.pl> | 2024-02-27 21:16:20 +0100 |
---|---|---|
committer | Michal Jagiello <michal.jagiello@t-mobile.pl> | 2024-02-27 21:16:20 +0100 |
commit | d9a7933dcfd3fd296be9b877a4801c992bf2658b (patch) | |
tree | aa6b75daeaecc86fedcc3551d6a557c3fed925b3 /src/onapsdk/sdc2/service.py | |
parent | 8193babda45e3fcffb38b844c841b64f317c9f62 (diff) |
Fix distribution status check error
Check if the set of components to which distribution is required
is a subset of the set of components to which the service model
has beed distributed
Issue-ID: TEST-404
Signed-off-by: Michal Jagiello <michal.jagiello@t-mobile.pl>
Change-Id: I4ed15a38022ccefab8148fa9f46a4e5ef38dc212
Diffstat (limited to 'src/onapsdk/sdc2/service.py')
-rw-r--r-- | src/onapsdk/sdc2/service.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/onapsdk/sdc2/service.py b/src/onapsdk/sdc2/service.py index 4618ec2..5f3a71c 100644 --- a/src/onapsdk/sdc2/service.py +++ b/src/onapsdk/sdc2/service.py @@ -143,7 +143,7 @@ class ServiceDistribution(SDC): notified_components_set: Set[str] = { distribution.component_id for distribution in self.distribution_status_list } - return notified_components_set == set(settings.SDC_SERVICE_DISTRIBUTION_COMPONENTS) + return set(settings.SDC_SERVICE_DISTRIBUTION_COMPONENTS).issubset(notified_components_set) @property def _no_distribution_errors_test(self) -> bool: |