X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/aa1e4c45da76894d64199acb89efdc50b8bb7756..37ab78a4c99a7b8534556881e6eb77d335abd9e3:/sdk/cli/bin/arv-run-pipeline-instance diff --git a/sdk/cli/bin/arv-run-pipeline-instance b/sdk/cli/bin/arv-run-pipeline-instance index d54fbc4126..ab8ff0a364 100755 --- a/sdk/cli/bin/arv-run-pipeline-instance +++ b/sdk/cli/bin/arv-run-pipeline-instance @@ -597,12 +597,12 @@ class WhRunPipelineInstance # succeeded. (At the top of this loop, I was still # waiting for it to finish.) - debuglog "names: #{@instance[:name]} #{@template[:name]}", 0 - if (not @instance[:name].nil?) and (not @instance[:name].empty?) + if @instance[:name].andand.length > 0 pipeline_name = @instance[:name] - else - fetch_template(@instance[:pipeline_template_uuid]) + elsif @template.andand[:name].andand.length.andand > 0 pipeline_name = @template[:name] + else + pipeline_name = @instance[:uuid] end if c[:output_name] != false # Create a collection located in the same project as the pipeline with the contents of the output.