<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _get_registries(self):
 """ Return a list of registries that this build updated For orchestrator it should attempt to filter out non-pulp registries, on worker - return all registries """

        if self.workflow.buildstep_result.get(PLUGIN_BUILD_ORCHESTRATE_KEY):
            registries = self.workflow.push_conf.pulp_registries
            if not registries:
                registries = self.workflow.push_conf.all_registries
            return registries
        else:
            return self.workflow.push_conf.all_registries