Exemplo n.º 1
0
def update_passwords():
    if config.passgen:
        for p in constants.ALL_PASSWRD_AND_SECRETS:
            passwd = status.get_passwd(context.setup, p)
            setattr(config, p, passwd)
    else:
        print "Using passwords found in configuration files"
Exemplo n.º 2
0
def update_passwords():
    if config.passgen:
        for p in constants.ALL_PASSWRD_AND_SECRETS:
            passwd = status.get_passwd(context.setup, p)
            setattr(config, p, passwd)
    else:
        print "Using passwords found in configuration files"
Exemplo n.º 3
0
def get_passwd(target):
    if not config.passgen:
        return getattr(config, target)
    return status.get_passwd(context.setup, target)
Exemplo n.º 4
0
def get_passwd(target):
    if not config.passgen:
        return getattr(config, target)
    return status.get_passwd(context.setup, target)