def get_edp_engine(self, cluster, job_type): if edp_engine.EdpEngine.job_type_supported(job_type): return edp_engine.EdpEngine(cluster) if shell_engine.ShellEngine.job_type_supported(job_type): return shell_engine.ShellEngine(cluster) return None
def get_edp_engine(self, cluster, job_type): if job_type in edp_engine.EdpEngine.get_supported_job_types(): return edp_engine.EdpEngine(cluster) return None