mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-02-04 07:51:50 +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:
parent
cc83188594
commit
85053728ce
2 changed files with 4 additions and 4 deletions
|
|
@ -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}'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue