Skip to content

Commit 1c040a2

Browse files
[-bug] Fixed issue when passing private key filename to SFTP store (#20)
2 parents 74629d3 + 2ede8ad commit 1c040a2

2 files changed

Lines changed: 19 additions & 17 deletions

File tree

.gitignore

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
1-
# Python-generated files
2-
__pycache__/
3-
*.py[oc]
4-
build/
5-
dist/
6-
wheels/
7-
*.egg-info
8-
9-
# Virtual environments
10-
.venv
11-
.coverage
12-
.DS_Store
13-
.vscode
14-
coverage.xml
15-
minisign_key.pri
16-
post_generation_instructions.html
1+
# Python-generated files
2+
__pycache__/
3+
*.py[oc]
4+
build/
5+
dist/
6+
wheels/
7+
*.egg-info
8+
9+
# Virtual environments
10+
.venv
11+
.coverage
12+
.DS_Store
13+
.vscode
14+
coverage.xml
15+
minisign_key.pri
16+
post_generation_instructions.html
17+
18+
paramiko.log

src/FileBackup/Impl/Common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ def YieldDataStore(
341341

342342
private_key_filename = Path(private_key_or_password)
343343
if private_key_filename.is_file():
344-
private_key_or_password = private_key_filename.read_text()
344+
private_key_or_password = private_key_filename
345345

346346
working_dir = sftp_match.group("working_dir")
347347
if working_dir:

0 commit comments

Comments
 (0)