diff --git a/form.yml.erb b/form.yml.erb index 154a3f76be8ea08852ed11b11b23d0a9c22e6bcb..645c1a5c46a4fb7b66236203253dba2da64d957a 100644 --- a/form.yml.erb +++ b/form.yml.erb @@ -1,3 +1,6 @@ +<%- + partitions = OodAppkit.clusters[:SLURM_CLUSTER].custom_config[:partitions] +-%> # Batch Connect app configuration file # # @note Used to define the submitted cluster, title, description, and @@ -91,20 +94,9 @@ attributes: widget: select label: Partition options: - - [ "express", "express" ] - - [ "short", "short" ] - - [ "medium", "medium" ] - - [ "long", "long" ] - - [ "interactive", "interactive" ] - - [ "pascalnodes", "pascalnodes" ] - - [ "pascalnodes-medium", "pascalnodes-medium" ] - - [ "largemem", "largemem" ] - - [ "largemem-long", "largemem-long" ] - - [ "amd-hdr100", "amd-hdr100" ] - - [ "intel-dcb", "intel-dcb" ] - - [ "amperenodes", "amperenodes" ] - - [ "amperenodes-medium", "amperenodes-medium" ] - + <%- partitions.each do |p| -%> + - [ "<%= p %>", "<%= p %>" ] + <%- end -%> # All of the attributes that make up the Dashboard form (in respective order), # and made available to the submit configuration file and the template ERB # files