summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/delegate_to/connection_plugins/fakelocal.py
diff options
context:
space:
mode:
authorMatt Clay <matt@mystile.com>2024-10-09 23:22:35 +0200
committerGitHub <noreply@github.com>2024-10-09 23:22:35 +0200
commita0495fc31497798a7a833ba7406a9729e1528dd8 (patch)
treec9ebc8e92d18e20bbb5f44d0184d00166b63b4df /test/integration/targets/delegate_to/connection_plugins/fakelocal.py
parentansible-test - Work around pylint issue on 3.11 (#84094) (diff)
downloadansible-a0495fc31497798a7a833ba7406a9729e1528dd8.tar.xz
ansible-a0495fc31497798a7a833ba7406a9729e1528dd8.zip
Update triple single quotes to triple double quotes (#84099)
* Update triple single quotes to triple double quotes This change was fully automated. The updated Python files have been verified to tokenize the same as the originals, except for the expected change in quoting of strings, which were verified through literal_eval. * Manual conversion of docstring quotes
Diffstat (limited to 'test/integration/targets/delegate_to/connection_plugins/fakelocal.py')
-rw-r--r--test/integration/targets/delegate_to/connection_plugins/fakelocal.py16
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