'Defaults are in the container.yml, overridden by any --var-file param given,
and finally overridden by any AC_* environment variables.
:param config: Loaded YAML config
:return: None'

def _resolve_defaults(self, config):

    if config.get('defaults'):
        tmp_defaults = yaml.compat.ordereddict()
        tmp_defaults.update(copy.deepcopy(config['defaults']), relax=True)
        config['defaults'] = tmp_defaults
    defaults = config.setdefault('defaults', yaml.compat.ordereddict())
    vars_files = (self.cli_vars_files or config.get('settings', {}).get('vars_files'))
    if vars_files:
        for var_file in vars_files:
            defaults.update(self._get_variables_from_file(var_file=var_file), relax=True)
    logger.debug('The    default    type    is', defaults=str(type(defaults)), config=str(type(config)))
    if (PY2 and (type(defaults) == yaml.compat.ordereddict)):
        defaults.update(self._get_environment_variables(), relax=True)
    else:
        defaults.update(self._get_environment_variables())
    logger.debug(u'Resolved    template    variables', template_vars=defaults)
