예제 #1
0
def prepare_configurations_as_task(taskname, levelno=20, username=None):
    """Prepare the configurations for validation.

    This task has the same functionality as function ``prepare_configurations``
    """
    logger = logging.getLogger(taskname)

    logger.info('Start the preparations of configurations')

    config_store = ConfigurationStore()
    config_store.logger = logger
    config_store.supply()

    logger.info('END PREPARATION')