From: Peter Amstutz Date: Wed, 17 Sep 2014 02:30:21 +0000 (-0400) Subject: Fix arv-run-pipeline-instance to not crash when template is null. no issue # X-Git-Tag: 1.1.0~2204 X-Git-Url: https://git.arvados.org/arvados.git/commitdiff_plain/452baf1ec1b55c6c4613972ee5f6b5ebf28e8ed7 Fix arv-run-pipeline-instance to not crash when template is null. no issue # --- diff --git a/sdk/cli/bin/arv-run-pipeline-instance b/sdk/cli/bin/arv-run-pipeline-instance index 35b2cd5942..c6fd61f9e3 100755 --- a/sdk/cli/bin/arv-run-pipeline-instance +++ b/sdk/cli/bin/arv-run-pipeline-instance @@ -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.