X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/3b7e5549bf4a17907f8e3236592bcbd5cf6ad623..300729d2ef4d0e7b9d86444c4a784b7e0b3beb6d:/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 5c36a1afb9..7ce1fa9514 100755 --- a/sdk/cli/bin/arv-run-pipeline-instance +++ b/sdk/cli/bin/arv-run-pipeline-instance @@ -580,11 +580,11 @@ class WhRunPipelineInstance name = c[:output_name] || "Output #{portable_data_hash[0..7]} of #{cname} of #{pipeline_name}" # check if there is a name collision. - name_collisions = $arv.collection.list(filters: [["owner_uuid", "=", owner_uuid] + name_collisions = $arv.collection.list(filters: [["owner_uuid", "=", owner_uuid], ["name", "=", name]])[:items] newcollection_actual = nil - if name_collisions.any? and name_collisions.first["portable_data_hash"] == portable_data_hash + if name_collisions.any? and name_collisions.first[:portable_data_hash] == portable_data_hash # There is already a collection with the same name and the # same contents, so just point to that. newcollection_actual = name_collisions.first