fix: if mock is active, do not search rbw or bw
This commit is contained in:
parent
4c72346aa6
commit
a12cf396fd
3 changed files with 36 additions and 27 deletions
|
|
@ -55,6 +55,7 @@ class RougailUserDataBitwarden:
|
||||||
self.leader_informations = {}
|
self.leader_informations = {}
|
||||||
bitwarden_command_line = None
|
bitwarden_command_line = None
|
||||||
one_is_find = False
|
one_is_find = False
|
||||||
|
if 'ROUGAIL_BITWARDEN_MOCK_ENABLE' not in environ:
|
||||||
if which('rbw'):
|
if which('rbw'):
|
||||||
one_is_find = True
|
one_is_find = True
|
||||||
try:
|
try:
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"errors": [],
|
||||||
|
"warnings": []
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,4 @@
|
||||||
|
{
|
||||||
|
"rougail.username": "bitwarden_username",
|
||||||
|
"rougail.secret": "bitwarden_password"
|
||||||
|
}
|
||||||
Loading…
Reference in a new issue