crans_bcfg2/etc/python/secrets.py
2014-02-13 23:38:59 +01:00

17 lines
389 B
Python

# -*- mode: python; coding: utf-8 -*-
#
# Recuperation des mots de passe
import sys
if '/usr/scripts' not in sys.path:
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