Fix boolean condition so that ansible-galaxy collection install works when a valid resolvelib is installed. (#77906)

pull/77916/head
Felix Fontein 2 years ago committed by GitHub
parent 82f3a57bee
commit 6fbc8bd2bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1606,7 +1606,7 @@ def _resolve_depenency_map(
raise AnsibleError(
f"ansible-galaxy requires resolvelib<{RESOLVELIB_UPPERBOUND.vstring},>={RESOLVELIB_LOWERBOUND.vstring}"
)
elif req.specifier.contains(RESOLVELIB_VERSION.vstring):
elif not req.specifier.contains(RESOLVELIB_VERSION.vstring):
raise AnsibleError(f"ansible-galaxy requires {req.name}{req.specifier}")
collection_dep_resolver = build_collection_dependency_resolver(

Loading…
Cancel
Save