autopep8 and bump alpine
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Tobias Trabelsi
2023-04-21 14:39:06 +02:00
parent 4f92bfe86a
commit 3bb40cdcb4
7 changed files with 147 additions and 46 deletions

View File

@ -2,9 +2,10 @@ import json
from utils.utils import get_secret_from_bitwarden, parse_fields_scope, parse_login_scope
def bitwarden_lookup(id, scope, field):
_secret_json = json.loads(get_secret_from_bitwarden(id))
if scope == "login":
return parse_login_scope(_secret_json, field)
if scope == "fields":
return parse_fields_scope(_secret_json, field)
return parse_fields_scope(_secret_json, field)