Skip to content

Commit 3919ef4

Browse files
committed
Get partition list from cluster config
1 parent a2a4616 commit 3919ef4

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

roles/ood_vnc_form/templates/cluster.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
<%-
2+
partitions = OodAppkit.clusters[:{{ cluster_name }}].custom_config[:partitions]
3+
-%>
14
---
25
title: "HPC Desktop"
36
cluster: {{ cluster_name }}
@@ -23,8 +26,9 @@ attributes:
2326
widget: select
2427
label: Partition
2528
options:
26-
- [ "defq", "defq" ]
27-
- [ "low", "low" ]
29+
<%- partitions.each do |p| -%>
30+
- [ "<%= p %>", "<%= p %>" ]
31+
<%- end -%>
2832

2933
form:
3034
- desktop

0 commit comments

Comments
 (0)