1
0
Fork 0
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:
Jonas L 2023-08-14 15:55:04 +02:00 committed by GitHub
parent e89835531f
commit 2d739edc88
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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):