Skip to content

Commit

Permalink
fix: Update handler.py for other PyQT issues in CI and formatting take 3
Browse files Browse the repository at this point in the history
  • Loading branch information
meramsey committed Feb 6, 2022
1 parent 98a1b50 commit 22a72e1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/wizardwebssh/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
redirecting = None

duo_auth = False

sshdb = None
ssh_id = ""
ssh_group = ""
ssh_priority = ""
Expand Down Expand Up @@ -246,7 +246,9 @@ def get_default_ssh_connection_data(database_name, connection):
return get_query_as_dict(query, database_name)


def default_ssh_connection(connection, db=sshdb):
def default_ssh_connection(connection, db=None):
if db is None and sshdb is not None:
db = sshdb
print("============BEGIN default_ssh_connection==================")
global ssh_id, ssh_group, ssh_priority, default_ssh_connection_name, ssh_connection_name, ssh_username, ssh_password, ssh_key_passphrase, ssh_public_key, ssh_private_key, ssh_host, ssh_hostname, ssh_port, ssh_proxy_command, ssh_key_name, ssh_config_name, ssh_public_key_file, ssh_private_key_file

Expand Down

0 comments on commit 22a72e1

Please sign in to comment.