def adjust_for_triggers(self):
        triggers = self.template['spec'].get('triggers', [])
        if len(triggers) == 0:
            for when, which in [("prebuild_plugins", "check_and_set_rebuild"),
                                ("prebuild_plugins", "stop_autorebuild_if_disabled"),
                                ("prebuild_plugins", "bump_release"),
                                ("postbuild_plugins", "import_image"),
                                ("exit_plugins", "sendmail")]:
                logger.info("removing %s from request because there are no triggers",
                            which)
                self.dj.remove_plugin(when, which)
FIXME: do I really need all this crap in here?
dataset/ETHPy150Open projectatomic/osbs-client/osbs/build/build_request.py/ProductionBuild.adjust_for_triggers--crossover with--dataset/ETHPy150Open meejah/txtorcon/test/test_torconfig.py/ErrorTests.test_no_tor_binary