From 40e88fae896bc2e1c155fe5e703b73e29fc9e912 Mon Sep 17 00:00:00 2001 From: Bo-Chun Louis Chen <louistw@uab.edu> Date: Fri, 19 Aug 2022 11:28:08 -0500 Subject: [PATCH] Get partition list from cluster config --- form.yml.erb | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/form.yml.erb b/form.yml.erb index 154a3f7..645c1a5 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 -- GitLab