mirror of
https://github.com/ansible/awx.git
synced 2026-02-01 01:28:09 -03:30
Only show the product version header when the requester is authenticated (#14135)
This commit is contained in:
@@ -533,13 +533,7 @@ class ControllerAPIModule(ControllerModule):
|
||||
controller_version = response.info().getheader('X-API-Product-Version', None)
|
||||
|
||||
parsed_collection_version = Version(self._COLLECTION_VERSION).version
|
||||
if not controller_version:
|
||||
self.warn(
|
||||
"You are using the {0} version of this collection but connecting to a controller that did not return a version".format(
|
||||
self._COLLECTION_VERSION
|
||||
)
|
||||
)
|
||||
else:
|
||||
if controller_version:
|
||||
parsed_controller_version = Version(controller_version).version
|
||||
if controller_type == 'AWX':
|
||||
collection_compare_ver = parsed_collection_version[0]
|
||||
|
||||
Reference in New Issue
Block a user