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:
parent
59fe4339d4
commit
dd5ee78386
6 changed files with 22 additions and 3 deletions
|
|
@ -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):
|
||||
|
|
|
|||
1
plugins/module_utils/version.py
Normal file
1
plugins/module_utils/version.py
Normal file
|
|
@ -0,0 +1 @@
|
|||
version = "2.0.0"
|
||||
Loading…
Add table
Add a link
Reference in a new issue