diff options
Diffstat (limited to 'test/integration/targets/delegate_to/connection_plugins/fakelocal.py')
-rw-r--r-- | test/integration/targets/delegate_to/connection_plugins/fakelocal.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/test/integration/targets/delegate_to/connection_plugins/fakelocal.py b/test/integration/targets/delegate_to/connection_plugins/fakelocal.py index e0ecdfde5f..6696ac7417 100644 --- a/test/integration/targets/delegate_to/connection_plugins/fakelocal.py +++ b/test/integration/targets/delegate_to/connection_plugins/fakelocal.py @@ -2,7 +2,7 @@ from __future__ import annotations -DOCUMENTATION = ''' +DOCUMENTATION = """ connection: fakelocal short_description: dont execute anything description: @@ -22,7 +22,7 @@ DOCUMENTATION = ''' key: remote_user vars: - name: ansible_user -''' +""" from ansible.errors import AnsibleConnectionFailure from ansible.plugins.connection import ConnectionBase @@ -32,7 +32,7 @@ display = Display() class Connection(ConnectionBase): - ''' Local based connections ''' + """ Local based connections """ transport = 'fakelocal' has_pipelining = True @@ -43,7 +43,7 @@ class Connection(ConnectionBase): self.cwd = None def _connect(self): - ''' verify ''' + """ verify """ if self.get_option('remote_user') == 'invaliduser' and self.get_option('password') == 'badpassword': raise AnsibleConnectionFailure('Got invaliduser and badpassword') @@ -54,22 +54,22 @@ class Connection(ConnectionBase): return self def exec_command(self, cmd, in_data=None, sudoable=True): - ''' run a command on the local host ''' + """ run a command on the local host """ super(Connection, self).exec_command(cmd, in_data=in_data, sudoable=sudoable) return 0, '{"msg": "ALL IS GOOD"}', '' def put_file(self, in_path, out_path): - ''' transfer a file from local to local ''' + """ transfer a file from local to local """ super(Connection, self).put_file(in_path, out_path) def fetch_file(self, in_path, out_path): - ''' fetch a file from local to local -- for compatibility ''' + """ fetch a file from local to local -- for compatibility """ super(Connection, self).fetch_file(in_path, out_path) def close(self): - ''' terminate the connection; nothing to do here ''' + """ terminate the connection; nothing to do here """ self._connected = False |