mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00:00
Make all doc fragments, module utils, and plugin utils private (#11896)
* Make all doc fragments private. * Make all plugin utils private. * Make all module utils private. * Reformat. * Changelog fragment. * Update configs and ignores. * Adjust unit test names.
This commit is contained in:
@@ -135,7 +135,7 @@ import socket
|
||||
from ansible.errors import AnsibleError
|
||||
from ansible.plugins.inventory import BaseInventoryPlugin, Cacheable, to_safe_group_name
|
||||
|
||||
from ansible_collections.community.general.plugins.plugin_utils.unsafe import make_unsafe
|
||||
from ansible_collections.community.general.plugins.plugin_utils._unsafe import make_unsafe
|
||||
|
||||
# xmlrpc
|
||||
try:
|
||||
|
||||
@@ -82,7 +82,7 @@ keyed_groups:
|
||||
from ansible.errors import AnsibleError, AnsibleParserError
|
||||
from ansible.plugins.inventory import BaseInventoryPlugin, Constructable
|
||||
|
||||
from ansible_collections.community.general.plugins.plugin_utils.unsafe import make_unsafe
|
||||
from ansible_collections.community.general.plugins.plugin_utils._unsafe import make_unsafe
|
||||
|
||||
try:
|
||||
import gitlab
|
||||
|
||||
@@ -100,7 +100,7 @@ from ansible.errors import AnsibleParserError
|
||||
from ansible.module_utils.urls import open_url
|
||||
from ansible.plugins.inventory import BaseInventoryPlugin, Constructable
|
||||
|
||||
from ansible_collections.community.general.plugins.plugin_utils.unsafe import make_unsafe
|
||||
from ansible_collections.community.general.plugins.plugin_utils._unsafe import make_unsafe
|
||||
|
||||
|
||||
class InventoryModule(BaseInventoryPlugin, Constructable):
|
||||
|
||||
@@ -127,7 +127,7 @@ compose:
|
||||
from ansible.errors import AnsibleError
|
||||
from ansible.plugins.inventory import BaseInventoryPlugin, Cacheable, Constructable
|
||||
|
||||
from ansible_collections.community.general.plugins.plugin_utils.unsafe import make_unsafe
|
||||
from ansible_collections.community.general.plugins.plugin_utils._unsafe import make_unsafe
|
||||
|
||||
try:
|
||||
from linode_api4 import LinodeClient
|
||||
|
||||
@@ -177,8 +177,8 @@ from ansible.module_utils.common.dict_transformations import dict_merge
|
||||
from ansible.module_utils.common.text.converters import to_native, to_text
|
||||
from ansible.plugins.inventory import BaseInventoryPlugin
|
||||
|
||||
from ansible_collections.community.general.plugins.module_utils.lxd import LXDClient, LXDClientException
|
||||
from ansible_collections.community.general.plugins.plugin_utils.unsafe import make_unsafe
|
||||
from ansible_collections.community.general.plugins.module_utils._lxd import LXDClient, LXDClientException
|
||||
from ansible_collections.community.general.plugins.plugin_utils._unsafe import make_unsafe
|
||||
|
||||
IPADDRESS_IMPORT_ERROR: ImportError | None
|
||||
try:
|
||||
|
||||
@@ -133,7 +133,7 @@ from ansible.module_utils.common.process import get_bin_path
|
||||
from ansible.module_utils.common.text.converters import to_native, to_text
|
||||
from ansible.plugins.inventory import BaseInventoryPlugin, Cacheable, Constructable
|
||||
|
||||
from ansible_collections.community.general.plugins.plugin_utils.unsafe import make_unsafe
|
||||
from ansible_collections.community.general.plugins.plugin_utils._unsafe import make_unsafe
|
||||
|
||||
|
||||
class InventoryModule(BaseInventoryPlugin, Constructable, Cacheable):
|
||||
|
||||
@@ -69,7 +69,7 @@ from ansible.module_utils.common.text.converters import to_text
|
||||
from ansible.module_utils.urls import open_url
|
||||
from ansible.plugins.inventory import BaseInventoryPlugin
|
||||
|
||||
from ansible_collections.community.general.plugins.plugin_utils.unsafe import make_unsafe
|
||||
from ansible_collections.community.general.plugins.plugin_utils._unsafe import make_unsafe
|
||||
|
||||
|
||||
class InventoryModule(BaseInventoryPlugin):
|
||||
|
||||
@@ -95,7 +95,7 @@ from collections import namedtuple
|
||||
from ansible.errors import AnsibleError
|
||||
from ansible.plugins.inventory import BaseInventoryPlugin, Constructable
|
||||
|
||||
from ansible_collections.community.general.plugins.plugin_utils.unsafe import make_unsafe
|
||||
from ansible_collections.community.general.plugins.plugin_utils._unsafe import make_unsafe
|
||||
|
||||
|
||||
class InventoryModule(BaseInventoryPlugin, Constructable):
|
||||
|
||||
@@ -135,8 +135,11 @@ from ansible.module_utils.common.text.converters import to_text
|
||||
from ansible.module_utils.urls import open_url
|
||||
from ansible.plugins.inventory import BaseInventoryPlugin, Constructable
|
||||
|
||||
from ansible_collections.community.general.plugins.module_utils.scaleway import SCALEWAY_LOCATION, parse_pagination_link
|
||||
from ansible_collections.community.general.plugins.plugin_utils.unsafe import make_unsafe
|
||||
from ansible_collections.community.general.plugins.module_utils._scaleway import (
|
||||
SCALEWAY_LOCATION,
|
||||
parse_pagination_link,
|
||||
)
|
||||
from ansible_collections.community.general.plugins.plugin_utils._unsafe import make_unsafe
|
||||
|
||||
|
||||
def _fetch_information(token, url):
|
||||
|
||||
@@ -80,7 +80,7 @@ from ansible.module_utils.common.process import get_bin_path
|
||||
from ansible.module_utils.common.text.converters import to_bytes, to_text
|
||||
from ansible.plugins.inventory import BaseInventoryPlugin, Cacheable, Constructable
|
||||
|
||||
from ansible_collections.community.general.plugins.plugin_utils.unsafe import make_unsafe
|
||||
from ansible_collections.community.general.plugins.plugin_utils._unsafe import make_unsafe
|
||||
|
||||
|
||||
class InventoryModule(BaseInventoryPlugin, Constructable, Cacheable):
|
||||
|
||||
@@ -101,8 +101,8 @@ from time import sleep
|
||||
from ansible.errors import AnsibleError
|
||||
from ansible.plugins.inventory import BaseInventoryPlugin, Cacheable, Constructable
|
||||
|
||||
from ansible_collections.community.general.plugins.module_utils.version import LooseVersion
|
||||
from ansible_collections.community.general.plugins.plugin_utils.unsafe import make_unsafe
|
||||
from ansible_collections.community.general.plugins.module_utils._version import LooseVersion
|
||||
from ansible_collections.community.general.plugins.plugin_utils._unsafe import make_unsafe
|
||||
|
||||
# 3rd party imports
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user