diff --git a/docsite/rst/developing_plugins.rst b/docsite/rst/developing_plugins.rst index 97be451b54..e1fda78cb0 100644 --- a/docsite/rst/developing_plugins.rst +++ b/docsite/rst/developing_plugins.rst @@ -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 `_ and figure things out pretty easily. +More documentation on writing connection plugins is pending, though you can jump into `lib/ansible/plugins/connection `_ and figure things out pretty easily. .. _developing_lookup_plugins: diff --git a/lib/ansible/playbook/role/__init__.py b/lib/ansible/playbook/role/__init__.py index 96a3f735c7..5e529ca190 100644 --- a/lib/ansible/playbook/role/__init__.py +++ b/lib/ansible/playbook/role/__init__.py @@ -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 diff --git a/lib/ansible/plugins/connection/chroot.py b/lib/ansible/plugins/connection/chroot.py index f99be93bac..6ef3a61cb5 100644 --- a/lib/ansible/plugins/connection/chroot.py +++ b/lib/ansible/plugins/connection/chroot.py @@ -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 diff --git a/lib/ansible/plugins/connection/docker.py b/lib/ansible/plugins/connection/docker.py index 0168f96fbe..1103327470 100644 --- a/lib/ansible/plugins/connection/docker.py +++ b/lib/ansible/plugins/connection/docker.py @@ -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 diff --git a/lib/ansible/plugins/connection/local.py b/lib/ansible/plugins/connection/local.py index e307798913..1b5a0efe29 100644 --- a/lib/ansible/plugins/connection/local.py +++ b/lib/ansible/plugins/connection/local.py @@ -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 ''' diff --git a/lib/ansible/plugins/connection/paramiko_ssh.py b/lib/ansible/plugins/connection/paramiko_ssh.py index 6df6a3ebe0..1960ff8076 100644 --- a/lib/ansible/plugins/connection/paramiko_ssh.py +++ b/lib/ansible/plugins/connection/paramiko_ssh.py @@ -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=""" diff --git a/lib/ansible/plugins/connection/ssh.py b/lib/ansible/plugins/connection/ssh.py index 38459cf774..c113f538d1 100644 --- a/lib/ansible/plugins/connection/ssh.py +++ b/lib/ansible/plugins/connection/ssh.py @@ -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): diff --git a/lib/ansible/plugins/connection/winrm.py b/lib/ansible/plugins/connection/winrm.py index 0e19b93ac2..4303a3ca2a 100644 --- a/lib/ansible/plugins/connection/winrm.py +++ b/lib/ansible/plugins/connection/winrm.py @@ -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 diff --git a/lib/ansible/plugins/strategy/free.py b/lib/ansible/plugins/strategy/free.py index bdaf77bffd..e44d872fec 100644 --- a/lib/ansible/plugins/strategy/free.py +++ b/lib/ansible/plugins/strategy/free.py @@ -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 diff --git a/lib/ansible/plugins/strategy/linear.py b/lib/ansible/plugins/strategy/linear.py index 50b5924104..d1e092b739 100644 --- a/lib/ansible/plugins/strategy/linear.py +++ b/lib/ansible/plugins/strategy/linear.py @@ -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: diff --git a/test/units/plugins/connections/test_connection.py b/test/units/plugins/connections/test_connection.py index aba94b5a61..10fa44216d 100644 --- a/test/units/plugins/connections/test_connection.py +++ b/test/units/plugins/connections/test_connection.py @@ -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): diff --git a/test/units/plugins/strategies/test_strategy_base.py b/test/units/plugins/strategies/test_strategy_base.py index eb85b9c771..bf01cf6fcc 100644 --- a/test/units/plugins/strategies/test_strategy_base.py +++ b/test/units/plugins/strategies/test_strategy_base.py @@ -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 diff --git a/test/units/template/test_templar.py b/test/units/template/test_templar.py index f7f22c7532..a029754f6e 100644 --- a/test/units/template/test_templar.py +++ b/test/units/template/test_templar.py @@ -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