Deprecate support for the v2 galaxy API (#82543)

Co-authored-by: Matt Davis <6775756+nitzmahone@users.noreply.github.com>
pull/82684/head
Matt Martz 3 months ago committed by GitHub
parent d15b77b94e
commit 6c21c545e1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -0,0 +1,2 @@
bugfixes:
- ansible-galaxy - Deprecate use of the Galaxy v2 API (https://github.com/ansible/ansible/issues/81781)

@ -133,6 +133,15 @@ def g_connect(versions):
% (method.__name__, ", ".join(versions), ", ".join(available_versions),
self.name, self.api_server))
# Warn only when we know we are talking to a collections API
if common_versions == {'v2'}:
display.deprecated(
'The v2 Ansible Galaxy API is deprecated and no longer supported. '
'Ensure that you have configured the ansible-galaxy CLI to utilize an '
'updated and supported version of Ansible Galaxy.',
version='2.20'
)
return method(self, *args, **kwargs)
return wrapped
return decorator

Loading…
Cancel
Save