mirror of
https://github.com/ansible-collections/hetzner.hcloud.git
synced 2026-02-04 08:01:49 +00:00
refactor: mark module_utils modules as private (#782)
##### SUMMARY All `module_utils` are now marked as **private**. None of the modules were intended for public use. Similar to https://togithub.com/ansible-collections/community.general/issues/11312
This commit is contained in:
parent
0f23e6c58c
commit
cfa0d181f7
152 changed files with 283 additions and 239 deletions
|
|
@ -160,10 +160,10 @@ hcloud_floating_ip:
|
|||
mylabel: 123
|
||||
"""
|
||||
|
||||
from ..module_utils import floating_ip
|
||||
from ..module_utils.hcloud import AnsibleHCloud, AnsibleModule
|
||||
from ..module_utils.vendor.hcloud import HCloudException
|
||||
from ..module_utils.vendor.hcloud.floating_ips import BoundFloatingIP
|
||||
from ..module_utils import _floating_ip
|
||||
from ..module_utils._base import AnsibleHCloud, AnsibleModule
|
||||
from ..module_utils._vendor.hcloud import HCloudException
|
||||
from ..module_utils._vendor.hcloud.floating_ips import BoundFloatingIP
|
||||
|
||||
|
||||
class AnsibleFloatingIP(AnsibleHCloud):
|
||||
|
|
@ -174,7 +174,7 @@ class AnsibleFloatingIP(AnsibleHCloud):
|
|||
def _prepare_result(self):
|
||||
if self.floating_ip is None:
|
||||
return {}
|
||||
return floating_ip.prepare_result(self.floating_ip)
|
||||
return _floating_ip.prepare_result(self.floating_ip)
|
||||
|
||||
def _get(self):
|
||||
if (value := self.module.params.get("id")) is not None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue