Fix crash when pipeline template is not readable. refs #10003
authorTom Clegg <tom@curoverse.com>
Mon, 12 Sep 2016 20:53:55 +0000 (16:53 -0400)
committerTom Clegg <tom@curoverse.com>
Mon, 12 Sep 2016 20:53:55 +0000 (16:53 -0400)
apps/workbench/app/models/pipeline_instance.rb

index 0541ce5d1792aee37fd6c40303a589a5637c128c..62bbc5431937e6a4b89826a3f03e2cda5c37ff27 100644 (file)
@@ -13,7 +13,7 @@ class PipelineInstance < ArvadosBase
       template = if lookup and lookup[self.pipeline_template_uuid]
                    lookup[self.pipeline_template_uuid]
                  else
-                   PipelineTemplate.find(self.pipeline_template_uuid) if self.pipeline_template_uuid
+                   PipelineTemplate.find?(self.pipeline_template_uuid) if self.pipeline_template_uuid
                  end
       if template
         template.name