Skip to content

Commit fe610c3

Browse files
committed
style
1 parent 2527707 commit fe610c3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/sftp/azext_sftp/file_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,10 @@ def check_or_create_public_private_files(public_key_file, private_key_file, cred
101101
else:
102102
if not os.path.isdir(credentials_folder):
103103
os.makedirs(credentials_folder)
104-
104+
105105
public_key_file = os.path.join(credentials_folder, "id_rsa.pub")
106106
private_key_file = os.path.join(credentials_folder, "id_rsa")
107-
107+
108108
# Check if existing keys are present before generating new ones
109109
if not (os.path.isfile(public_key_file) and os.path.isfile(private_key_file)):
110110
# Only generate new keys if both don't exist

src/sftp/azext_sftp/sftp_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,9 +177,9 @@ def get_ssh_cert_info(cert_file, ssh_client_folder=None):
177177

178178
_warned_ssh_client_folders = set()
179179

180+
180181
def get_ssh_client_path(ssh_command="ssh", ssh_client_folder=None):
181182
"""Get the path to an SSH client executable."""
182-
global _warned_ssh_client_folders
183183
if ssh_client_folder:
184184
ssh_path = os.path.join(ssh_client_folder, ssh_command)
185185
if platform.system() == 'Windows':

0 commit comments

Comments
 (0)