From: Nico Cesar Date: Wed, 18 Nov 2020 21:08:30 +0000 (-0500) Subject: New name of output collection is null or empty X-Git-Url: https://git.arvados.org/arvados.git/commitdiff_plain/5c7576f6e9100c994dcbcb26c9592640686d5add New name of output collection is null or empty Arvados-DCO-1.1-Signed-off-by: Nico Cesar --- diff --git a/doc/api/methods/container_requests.html.textile.liquid b/doc/api/methods/container_requests.html.textile.liquid index cd566f5ce4..b24a24e067 100644 --- a/doc/api/methods/container_requests.html.textile.liquid +++ b/doc/api/methods/container_requests.html.textile.liquid @@ -49,7 +49,7 @@ table(table table-bordered table-condensed). |cwd|string|Initial working directory, given as an absolute path (in the container) or a path relative to the WORKDIR given in the image's Dockerfile.|Required.| |command|array of strings|Command to execute in the container.|Required. e.g., @["echo","hello"]@| |output_path|string|Path to a directory or file inside the container that should be preserved as container's output when it finishes. This path must be one of the mount targets. For best performance, point output_path to a writable collection mount. See "Pre-populate output using Mount points":#pre-populate-output for details regarding optional output pre-population using mount points and "Symlinks in output":#symlinks-in-output for additional details.|Required.| -|output_name|string|Desired name for the output collection. If null, a name will be assigned automatically.|| +|output_name|string|Desired name for the output collection. If null or empty, a name will be assigned automatically.|| |output_ttl|integer|Desired lifetime for the output collection, in seconds. If zero, the output collection will not be deleted automatically.|| |priority|integer|Range 0-1000. Indicate scheduling order preference.|Clients are expected to submit container requests with zero priority in order to preview the container that will be used to satisfy it. Priority can be null if and only if state!="Committed". See "below for more details":#priority .| |expires_at|datetime|After this time, priority is considered to be zero.|Not yet implemented.| diff --git a/services/api/app/models/container_request.rb b/services/api/app/models/container_request.rb index 77536eee4f..2ba175fd99 100644 --- a/services/api/app/models/container_request.rb +++ b/services/api/app/models/container_request.rb @@ -194,7 +194,7 @@ class ContainerRequest < ArvadosModel coll_name = "Container #{out_type} for request #{uuid}" trash_at = nil if out_type == 'output' - if self.output_name + if self.output_name and self.output_name != "" coll_name = self.output_name end if self.output_ttl > 0