From 452baf1ec1b55c6c4613972ee5f6b5ebf28e8ed7 Mon Sep 17 00:00:00 2001 From: Peter Amstutz Date: Tue, 16 Sep 2014 22:30:21 -0400 Subject: [PATCH] Fix arv-run-pipeline-instance to not crash when template is null. no issue # --- sdk/cli/bin/arv-run-pipeline-instance | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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. -- 2.30.2