Fix arv-run-pipeline-instance to not crash when template is null. no issue #
[arvados.git] / sdk / cli / bin / arv-run-pipeline-instance
index 35b2cd59428c67239d78fbcf70d75c378c071889..c6fd61f9e3c90fe4836b9918635db9bdde984a1e 100755 (executable)
@@ -578,9 +578,11 @@ class WhRunPipelineInstance
               debuglog "names: #{@instance[:name]} #{@template[:name]}", 0
               if (not @instance[:name].nil?) and (not @instance[:name].empty?)
                 pipeline_name = @instance[:name]
-              else
+              elsif @instance[:pipeline_template_uuid]
                 fetch_template(@instance[:pipeline_template_uuid])
                 pipeline_name = @template[:name]
+              else
+                pipeline_name = "pipeline started #{@instance[:started_at]}"
               end
               if c[:output_name] != false
                 # Create a collection located in the same project as the pipeline with the contents of the output.