1
0
Fork 0
mirror of https://github.com/ansible-collections/hetzner.hcloud.git synced 2026-02-04 08:01:49 +00:00

feat: replace ansible version with collection version in hcloud user agent (#291)

* feat: use collection version in hcloud user-agent

* chore: add version sync pre-commit hook

* chore: add changelog fragment
This commit is contained in:
Jonas L 2023-08-09 11:34:12 +02:00 committed by GitHub
parent 59fe4339d4
commit dd5ee78386
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 22 additions and 3 deletions

View file

@ -5,11 +5,11 @@
import traceback
from ansible.module_utils.ansible_release import __version__
from ansible.module_utils.basic import env_fallback, missing_required_lib
from ansible.module_utils.common.text.converters import to_native
from ..module_utils.vendor import hcloud
from .version import version
HAS_REQUESTS = True
HAS_DATEUTIL = True
@ -65,7 +65,7 @@ class AnsibleHCloud:
token=self.module.params["api_token"],
api_endpoint=self.module.params["endpoint"],
application_name="ansible-module",
application_version=__version__,
application_version=version,
)
def _mark_as_changed(self):

View file

@ -0,0 +1 @@
version = "2.0.0"