mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
corrected all missing paths changes
This commit is contained in:
parent
4aea1f6568
commit
b6d6c2e4db
13 changed files with 22 additions and 22 deletions
|
@ -21,7 +21,7 @@ Carrier Pigeon?) it's as simple as copying the format of one of the existing mod
|
|||
directory. The value of 'smart' for a connection allows selection of paramiko or openssh based on system capabilities, and chooses
|
||||
'ssh' if OpenSSH supports ControlPersist, in Ansible 1.2.1 an later. Previous versions did not support 'smart'.
|
||||
|
||||
More documentation on writing connection plugins is pending, though you can jump into `lib/ansible/plugins/connections <https://github.com/ansible/ansible/tree/devel/lib/ansible/plugins/connections>`_ and figure things out pretty easily.
|
||||
More documentation on writing connection plugins is pending, though you can jump into `lib/ansible/plugins/connection <https://github.com/ansible/ansible/tree/devel/lib/ansible/plugins/connection>`_ and figure things out pretty easily.
|
||||
|
||||
.. _developing_lookup_plugins:
|
||||
|
||||
|
|
|
@ -45,7 +45,7 @@ __all__ = ['Role', 'hash_params']
|
|||
# FIXME: this should be a utility function, but can't be a member of
|
||||
# the role due to the fact that it would require the use of self
|
||||
# in a static method. This is also used in the base class for
|
||||
# strategies (ansible/plugins/strategies/__init__.py)
|
||||
# strategies (ansible/plugins/strategy/__init__.py)
|
||||
def hash_params(params):
|
||||
if not isinstance(params, dict):
|
||||
return params
|
||||
|
|
|
@ -27,7 +27,7 @@ import traceback
|
|||
|
||||
from ansible import constants as C
|
||||
from ansible.errors import AnsibleError
|
||||
from ansible.plugins.connections import ConnectionBase
|
||||
from ansible.plugins.connection import ConnectionBase
|
||||
from ansible.utils.path import is_executable
|
||||
from ansible.utils.unicode import to_bytes
|
||||
|
||||
|
|
|
@ -31,7 +31,7 @@ from distutils.version import LooseVersion
|
|||
import ansible.constants as C
|
||||
|
||||
from ansible import errors
|
||||
from ansible.plugins.connections import ConnectionBase
|
||||
from ansible.plugins.connection import ConnectionBase
|
||||
|
||||
BUFSIZE = 65536
|
||||
|
||||
|
|
|
@ -28,7 +28,7 @@ import fcntl
|
|||
import ansible.constants as C
|
||||
|
||||
from ansible.errors import AnsibleError, AnsibleFileNotFound
|
||||
from ansible.plugins.connections import ConnectionBase
|
||||
from ansible.plugins.connection import ConnectionBase
|
||||
|
||||
class Connection(ConnectionBase):
|
||||
''' Local based connections '''
|
||||
|
|
|
@ -43,7 +43,7 @@ from six import iteritems
|
|||
|
||||
from ansible import constants as C
|
||||
from ansible.errors import AnsibleError, AnsibleConnectionFailure, AnsibleFileNotFound
|
||||
from ansible.plugins.connections import ConnectionBase
|
||||
from ansible.plugins.connection import ConnectionBase
|
||||
from ansible.utils.path import makedirs_safe
|
||||
|
||||
AUTHENTICITY_MSG="""
|
||||
|
|
|
@ -36,7 +36,7 @@ from hashlib import sha1
|
|||
|
||||
from ansible import constants as C
|
||||
from ansible.errors import AnsibleError, AnsibleConnectionFailure, AnsibleFileNotFound
|
||||
from ansible.plugins.connections import ConnectionBase
|
||||
from ansible.plugins.connection import ConnectionBase
|
||||
from ansible.utils.path import unfrackpath, makedirs_safe
|
||||
|
||||
class Connection(ConnectionBase):
|
||||
|
|
|
@ -42,7 +42,7 @@ except ImportError:
|
|||
|
||||
from ansible import constants as C
|
||||
from ansible.errors import AnsibleError, AnsibleConnectionFailure, AnsibleFileNotFound
|
||||
from ansible.plugins.connections import ConnectionBase
|
||||
from ansible.plugins.connection import ConnectionBase
|
||||
from ansible.plugins import shell_loader
|
||||
from ansible.utils.path import makedirs_safe
|
||||
from ansible.utils.unicode import to_bytes, to_unicode
|
||||
|
|
|
@ -23,7 +23,7 @@ import time
|
|||
|
||||
from ansible.errors import *
|
||||
from ansible.playbook.included_file import IncludedFile
|
||||
from ansible.plugins.strategies import StrategyBase
|
||||
from ansible.plugins.strategy import StrategyBase
|
||||
|
||||
try:
|
||||
from __main__ import display
|
||||
|
|
|
@ -27,7 +27,7 @@ from ansible.playbook.block import Block
|
|||
from ansible.playbook.included_file import IncludedFile
|
||||
from ansible.playbook.task import Task
|
||||
from ansible.plugins import action_loader
|
||||
from ansible.plugins.strategies import StrategyBase
|
||||
from ansible.plugins.strategy import StrategyBase
|
||||
from ansible.template import Templar
|
||||
|
||||
try:
|
||||
|
|
|
@ -24,16 +24,16 @@ from six import StringIO
|
|||
from ansible.compat.tests import unittest
|
||||
from ansible.playbook.play_context import PlayContext
|
||||
|
||||
from ansible.plugins.connections import ConnectionBase
|
||||
#from ansible.plugins.connections.accelerate import Connection as AccelerateConnection
|
||||
#from ansible.plugins.connections.chroot import Connection as ChrootConnection
|
||||
#from ansible.plugins.connections.funcd import Connection as FuncdConnection
|
||||
#from ansible.plugins.connections.jail import Connection as JailConnection
|
||||
#from ansible.plugins.connections.libvirt_lxc import Connection as LibvirtLXCConnection
|
||||
from ansible.plugins.connections.local import Connection as LocalConnection
|
||||
from ansible.plugins.connections.paramiko_ssh import Connection as ParamikoConnection
|
||||
from ansible.plugins.connections.ssh import Connection as SSHConnection
|
||||
#from ansible.plugins.connections.winrm import Connection as WinRmConnection
|
||||
from ansible.plugins.connection import ConnectionBase
|
||||
#from ansible.plugins.connection.accelerate import Connection as AccelerateConnection
|
||||
#from ansible.plugins.connection.chroot import Connection as ChrootConnection
|
||||
#from ansible.plugins.connection.funcd import Connection as FuncdConnection
|
||||
#from ansible.plugins.connection.jail import Connection as JailConnection
|
||||
#from ansible.plugins.connection.libvirt_lxc import Connection as LibvirtLXCConnection
|
||||
from ansible.plugins.connection.local import Connection as LocalConnection
|
||||
from ansible.plugins.connection.paramiko_ssh import Connection as ParamikoConnection
|
||||
from ansible.plugins.connection.ssh import Connection as SSHConnection
|
||||
#from ansible.plugins.connection.winrm import Connection as WinRmConnection
|
||||
|
||||
class TestConnectionBaseClass(unittest.TestCase):
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@ from ansible.compat.tests import unittest
|
|||
from ansible.compat.tests.mock import patch, MagicMock
|
||||
|
||||
from ansible.errors import AnsibleError, AnsibleParserError
|
||||
from ansible.plugins.strategies import StrategyBase
|
||||
from ansible.plugins.strategy import StrategyBase
|
||||
from ansible.executor.task_queue_manager import TaskQueueManager
|
||||
from ansible.executor.task_result import TaskResult
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@ from ansible.compat.tests.mock import patch, MagicMock
|
|||
from ansible import constants as C
|
||||
from ansible.errors import *
|
||||
from ansible.plugins import filter_loader, lookup_loader, module_loader
|
||||
from ansible.plugins.strategies import SharedPluginLoaderObj
|
||||
from ansible.plugins.strategy import SharedPluginLoaderObj
|
||||
from ansible.template import Templar
|
||||
|
||||
from units.mock.loader import DictDataLoader
|
||||
|
|
Loading…
Reference in a new issue