Example #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"
Example #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"
Example #3
0
def get_passwd(target):
    if not config.passgen:
        return getattr(config, target)
    return status.get_passwd(context.setup, target)
Example #4
0
def get_passwd(target):
    if not config.passgen:
        return getattr(config, target)
    return status.get_passwd(context.setup, target)