mirror of
https://github.com/netinvent/npbackup.git
synced 2025-10-18 01:18:01 +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
|
||||
"""
|
||||
for option in encrypted_options:
|
||||
if option in key:
|
||||
return True
|
||||
if key:
|
||||
for option in encrypted_options:
|
||||
if option in key:
|
||||
return True
|
||||
return False
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue