mirror of
https://github.com/ansible-collections/hetzner.hcloud.git
synced 2026-02-04 08:01:49 +00:00
refactor: use super() to reference parent class (#280)
This commit is contained in:
parent
1b83de57ef
commit
98afa99904
32 changed files with 126 additions and 126 deletions
|
|
@ -265,7 +265,7 @@ from ..module_utils.vendor.hcloud import HCloudException
|
|||
|
||||
class AnsibleHcloudLoadBalancerInfo(Hcloud):
|
||||
def __init__(self, module):
|
||||
Hcloud.__init__(self, module, "hcloud_load_balancer_info")
|
||||
super().__init__(module, "hcloud_load_balancer_info")
|
||||
self.hcloud_load_balancer_info = None
|
||||
|
||||
def _prepare_result(self):
|
||||
|
|
@ -365,14 +365,14 @@ class AnsibleHcloudLoadBalancerInfo(Hcloud):
|
|||
except HCloudException as e:
|
||||
self.fail_json_hcloud(e)
|
||||
|
||||
@staticmethod
|
||||
def define_module():
|
||||
@classmethod
|
||||
def define_module(cls):
|
||||
return AnsibleModule(
|
||||
argument_spec=dict(
|
||||
id={"type": "int"},
|
||||
name={"type": "str"},
|
||||
label_selector={"type": "str"},
|
||||
**Hcloud.base_module_arguments()
|
||||
**super().base_module_arguments()
|
||||
),
|
||||
supports_check_mode=True,
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue