mirror of
https://github.com/netinvent/npbackup.git
synced 2025-10-27 05:47:20 +08:00
Fix creating new config with missing keys
This commit is contained in:
parent
8203d5c6b3
commit
0ad07716e4
1 changed files with 4 additions and 3 deletions
|
|
@ -248,9 +248,10 @@ def key_should_be_encrypted(key: str, encrypted_options: List[str]):
|
||||||
"""
|
"""
|
||||||
Checks whether key should be encrypted
|
Checks whether key should be encrypted
|
||||||
"""
|
"""
|
||||||
for option in encrypted_options:
|
if key:
|
||||||
if option in key:
|
for option in encrypted_options:
|
||||||
return True
|
if option in key:
|
||||||
|
return True
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue