def _apply_persona(self, component, persona):
        """Apply persona specific options according to component.

        Include the general.yaml in each applying since it typically contains
        useful shared settings.
        """
        for conf in ('general', component):
            if persona not in None:
                # Note: any additional redefines could be added here.
                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/operator `is not` -> `not in`