

def _apply_persona(self, component, persona):
    'Apply persona specific options according to component.\n\n        Include the general.yaml in each applying since it typically contains\n        useful shared settings.\n        '
    for conf in ('general', component):
        if (persona is not None):
            persona_specific = persona.component_options.get(component, {
                
            })
            try:
                self._base_loader.update_cache(conf, persona_specific)
            except exceptions.YamlConfigNotFoundException:
                LOG.warn("Unable to update the loaders cache with component '%s' configuration using persona specific data: %s", conf, persona_specific, exc_info=True)

dataset/ETHPy150Open openstack/anvil/anvil/cfg.py YamlMergeLoader._apply_persona/original