From 6ecdc9721166057d6d89a225d70ffb3e5856c251 Mon Sep 17 00:00:00 2001 From: Pierre Riteau Date: Mon, 31 May 2021 16:31:41 +0200 Subject: [PATCH] Fix requirements-check error message If local exclusions are not a subset of global exclusions, we probably want to identify any item in local exclusions that are not in global exclusions, instead of the opposite. Change-Id: Id8e5a423288ac6db3b836ae553d766e5f04b4dec --- openstack_requirements/check.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openstack_requirements/check.py b/openstack_requirements/check.py index 3cdece62f8..c1550359e3 100644 --- a/openstack_requirements/check.py +++ b/openstack_requirements/check.py @@ -121,7 +121,7 @@ def _is_requirement_in_global_reqs(local_req, global_reqs, allow_3_only=False): if req_exclusions.issubset(global_exclusions): return True else: - difference = global_exclusions - req_exclusions + difference = req_exclusions - global_exclusions print( "ERROR: Requirement for package {} " "excludes a version not excluded in the "