Allow setting image for multi-node bookings 76/73176/1
authorSawyer Bergeron <sbergeron@iol.unh.edu>
Tue, 11 Jan 2022 14:49:04 +0000 (09:49 -0500)
committerSawyer Bergeron <sbergeron@iol.unh.edu>
Tue, 11 Jan 2022 14:49:04 +0000 (09:49 -0500)
Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu>
Change-Id: I0cfce29b43a729217f2a658b7eb86b84115d2995

src/static/js/dashboard.js

index 85a337b..e3978e3 100644 (file)
@@ -418,9 +418,12 @@ class MultipleSelectFilterWidget {
             cnt += required_resources[resource];
         }
 
-        if (cnt > 1 && hostname && image) {
+        if (cnt > 1 && hostname) {
             hostname.readOnly = true;
-            image.disabled = true;
+            // we only disable hostname modification because there is no sane case where you want all hosts to have the same hostname
+            // image is still allowed to be set across all hosts, but is filtered to the set of images that are commonly applicable still
+            // if no images exist that would apply to all hosts in a pod, then the user is restricted to not setting an image
+            // and the default image for each host is used
         }
 
         this.updateAvailibility();