Skip to content

Commit

Permalink
Fix quotes on disabled algorithms example and test
Browse files Browse the repository at this point in the history
  • Loading branch information
pauldalewilliams committed Jun 3, 2022
1 parent bf3590f commit 3a513d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/apache-airflow-providers-ssh/connections/ssh.rst
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ Extra (optional)
"look_for_keys": "false",
"allow_host_key_change": "false",
"host_key": "AAAHD...YDWwq=="
"disabled_algorithms": {'pubkeys': ['rsa-sha2-256', 'rsa-sha2-512']}
"disabled_algorithms": {"pubkeys": ["rsa-sha2-256", "rsa-sha2-512"]}
}
When specifying the connection as URI (in :envvar:`AIRFLOW_CONN_{CONN_ID}` variable) you should specify it
Expand Down
2 changes: 1 addition & 1 deletion tests/providers/ssh/hooks/test_ssh.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def generate_host_key(pkey: paramiko.PKey):
PASSPHRASE = ''.join(random.choice(string.ascii_letters) for i in range(10))
TEST_ENCRYPTED_PRIVATE_KEY = generate_key_string(pkey=TEST_PKEY, passphrase=PASSPHRASE)

TEST_DISABLED_ALGORITHMS = {'pubkeys': ['rsa-sha2-256', 'rsa-sha2-512']}
TEST_DISABLED_ALGORITHMS = {"pubkeys": ["rsa-sha2-256", "rsa-sha2-512"]}


class TestSSHHook(unittest.TestCase):
Expand Down

0 comments on commit 3a513d0

Please sign in to comment.