diff options
author | 2024-02-27 21:16:20 +0100 | |
---|---|---|
committer | 2024-02-27 21:16:20 +0100 | |
commit | d9a7933dcfd3fd296be9b877a4801c992bf2658b (patch) | |
tree | aa6b75daeaecc86fedcc3551d6a557c3fed925b3 /src | |
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')
-rw-r--r-- | src/onapsdk/sdc2/service.py | 2 | ||||
-rw-r--r-- | src/onapsdk/version.py | 2 |
2 files changed, 2 insertions, 2 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: diff --git a/src/onapsdk/version.py b/src/onapsdk/version.py index fcce060..6d6d217 100644 --- a/src/onapsdk/version.py +++ b/src/onapsdk/version.py @@ -13,4 +13,4 @@ # See the License for the specific language governing permissions and # limitations under the License. -__version__ = "13.0.3" +__version__ = "13.0.4" |