mirror of
https://github.com/ansible-collections/hetzner.hcloud.git
synced 2026-02-04 08:01:49 +00:00
feat: use collection version for the inventory user agent (#297)
This commit is contained in:
parent
e89835531f
commit
2d739edc88
1 changed files with 2 additions and 2 deletions
|
|
@ -120,10 +120,10 @@ from ipaddress import IPv6Network
|
|||
from ansible.errors import AnsibleError
|
||||
from ansible.module_utils.common.text.converters import to_native
|
||||
from ansible.plugins.inventory import BaseInventoryPlugin, Constructable
|
||||
from ansible.release import __version__
|
||||
|
||||
from ..module_utils.hcloud import HAS_DATEUTIL, HAS_REQUESTS
|
||||
from ..module_utils.vendor import hcloud
|
||||
from ..module_utils.version import version
|
||||
|
||||
|
||||
class InventoryModule(BaseInventoryPlugin, Constructable):
|
||||
|
|
@ -147,7 +147,7 @@ class InventoryModule(BaseInventoryPlugin, Constructable):
|
|||
token=self.api_token,
|
||||
api_endpoint=self.endpoint,
|
||||
application_name="ansible-inventory",
|
||||
application_version=__version__,
|
||||
application_version=version,
|
||||
)
|
||||
|
||||
def _test_hcloud_token(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue