mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-03-26 21:33:12 +00:00
linode module utils: update import to recent Ansible level (#10906)
* linode module utils: update import to recent Ansible level * add changelog frag
This commit is contained in:
@@ -11,11 +11,9 @@
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from ansible.module_utils.ansible_release import __version__ as ansible_version
|
||||
|
||||
|
||||
def get_user_agent(module):
|
||||
"""Retrieve a user-agent to send with LinodeClient requests."""
|
||||
try:
|
||||
from ansible.module_utils.ansible_release import __version__ as ansible_version
|
||||
except ImportError:
|
||||
ansible_version = 'unknown'
|
||||
return f'Ansible-{module}/{ansible_version}'
|
||||
|
||||
Reference in New Issue
Block a user