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
|
|
@ -4,7 +4,7 @@ import json
|
|||
from unittest.mock import MagicMock
|
||||
|
||||
from plugins.inventory.hcloud import InventoryModule, first_ipv6_address
|
||||
from plugins.module_utils.vendor.hcloud.servers import BoundServer
|
||||
from plugins.module_utils._vendor.hcloud.servers import BoundServer
|
||||
|
||||
|
||||
def test_first_ipv6_address():
|
||||
|
|
|
|||
|
|
@ -4,13 +4,14 @@ from datetime import datetime, timedelta, timezone
|
|||
from unittest import mock
|
||||
|
||||
import pytest
|
||||
from ansible_collections.hetzner.hcloud.plugins.module_utils.deprecation import (
|
||||
|
||||
from plugins.module_utils._deprecation import (
|
||||
deprecated_server_type_warning,
|
||||
)
|
||||
from ansible_collections.hetzner.hcloud.plugins.module_utils.vendor.hcloud.locations import (
|
||||
from plugins.module_utils._vendor.hcloud.locations import (
|
||||
BoundLocation,
|
||||
)
|
||||
from ansible_collections.hetzner.hcloud.plugins.module_utils.vendor.hcloud.server_types import (
|
||||
from plugins.module_utils._vendor.hcloud.server_types import (
|
||||
BoundServerType,
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -4,11 +4,12 @@ import traceback
|
|||
from datetime import datetime, timezone
|
||||
|
||||
import pytest
|
||||
from ansible_collections.hetzner.hcloud.plugins.module_utils.hcloud import AnsibleHCloud
|
||||
from ansible_collections.hetzner.hcloud.plugins.module_utils.vendor.hcloud import (
|
||||
|
||||
from plugins.module_utils._base import AnsibleHCloud
|
||||
from plugins.module_utils._vendor.hcloud import (
|
||||
APIException,
|
||||
)
|
||||
from ansible_collections.hetzner.hcloud.plugins.module_utils.vendor.hcloud.actions import (
|
||||
from plugins.module_utils._vendor.hcloud.actions import (
|
||||
Action,
|
||||
ActionException,
|
||||
ActionFailedException,
|
||||
|
|
|
|||
|
|
@ -1,7 +1,8 @@
|
|||
from __future__ import annotations
|
||||
|
||||
import pytest
|
||||
from ansible_collections.hetzner.hcloud.plugins.module_utils.ssh import (
|
||||
|
||||
from plugins.module_utils._ssh import (
|
||||
ssh_public_key_md5_fingerprint,
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -100,7 +100,7 @@ case "$test_name" in
|
|||
sanity)
|
||||
# shellcheck disable=SC2086
|
||||
ansible-test sanity --color -v \
|
||||
--exclude plugins/module_utils/vendor/ \
|
||||
--exclude plugins/module_utils/_vendor/ \
|
||||
--exclude scripts/ \
|
||||
--exclude tests/utils/ \
|
||||
--docker default \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue