def do_command(self):
        # Show and exit
        self.command == "show" and self.do_show()

        if self.config.dry_run:
            self.show_dry_run()
        else:
            logger.info("Job starting: %s %s", self.command, self.act_on)
            logger.debug("Params: %s", self.config)

            success = self.api.invoke(command=self.command, act_on=self.act_on)
            self.exit_msg(success)
Tests that a reverse relationship through a foreign keys to public from a model inside TENANT_APPS works.
dataset/ETHPy150Open StackStorm/st2contrib/packs/elasticsearch/actions/lib/curator_action.py/CuratorAction.do_command--crossover with--dataset/ETHPy150Open tomturner/django-tenants/django_tenants/tests/test_tenants.py/SharedAuthTest.test_reverse_relation_to_public