secrets: passage par secrets_new
This commit is contained in:
parent
cfc01128a0
commit
29498ba16f
1 changed files with 10 additions and 2 deletions
|
@ -3,7 +3,15 @@
|
||||||
# Recuperation des mots de passe
|
# Recuperation des mots de passe
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
sys.path.append("/etc/crans/secrets")
|
if '/usr/scripts' not in sys.path:
|
||||||
import secrets
|
sys.path.append("/usr/scripts")
|
||||||
|
from gestion import secrets_new
|
||||||
|
|
||||||
|
class DummySecrets(object):
|
||||||
|
def __getattribute__(self, k):
|
||||||
|
## TODO: traceback pour savoir qui s'en sert
|
||||||
|
return secrets_new.get(k)
|
||||||
|
|
||||||
|
secrets = DummySecrets()
|
||||||
|
|
||||||
info['perms'] &= ~0077
|
info['perms'] &= ~0077
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue