Fix existing passwords without id
This commit is contained in:
parent
cfa8b12398
commit
84d3f341bd
2 changed files with 10 additions and 1 deletions
|
@ -930,9 +930,17 @@ class NextcloudHandler:
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
if update:
|
if update and 'id' in exists_password:
|
||||||
new_obj['id'] = exists_password['id']
|
new_obj['id'] = exists_password['id']
|
||||||
return self.update_password(new_obj)
|
return self.update_password(new_obj)
|
||||||
|
if 'id' not in exists_password:
|
||||||
|
self.debug(
|
||||||
|
{
|
||||||
|
"action": "create_password",
|
||||||
|
"message": "Found an existing password without an 'id'",
|
||||||
|
"existing_password": exists_password
|
||||||
|
}
|
||||||
|
)
|
||||||
self.warning(
|
self.warning(
|
||||||
{
|
{
|
||||||
"action": "create_password",
|
"action": "create_password",
|
||||||
|
|
|
@ -5,3 +5,4 @@ pysodium
|
||||||
passpy
|
passpy
|
||||||
secretstorage
|
secretstorage
|
||||||
pyyaml
|
pyyaml
|
||||||
|
libsodium
|
||||||
|
|
Loading…
Reference in a new issue