Move temporary availableOs list
Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
This commit is contained in:
parent
8b21823002
commit
486d683cd0
@ -35,15 +35,14 @@ public class WebApplication {
|
||||
|
||||
static ArrayList<String> availableOs = new ArrayList<String>();
|
||||
|
||||
private void genOsList() {
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(WebApplication.class, args);
|
||||
|
||||
//to-do: move this to some config file or database
|
||||
availableOs.add("archlinux");
|
||||
availableOs.add("opensuse-leap");
|
||||
availableOs.add("opensuse-tumbleweed");
|
||||
availableOs.add("ubuntu");
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(WebApplication.class, args);
|
||||
availableOs.add("ubuntu");
|
||||
}
|
||||
|
||||
@GetMapping("/")
|
||||
@ -94,7 +93,6 @@ public class WebApplication {
|
||||
model.addAttribute("docker_images", images);
|
||||
model.addAttribute("docker_containers", containers);
|
||||
|
||||
genOsList();
|
||||
model.addAttribute("availableOs", availableOs);
|
||||
|
||||
return("admin");
|
||||
@ -141,7 +139,6 @@ public class WebApplication {
|
||||
model.addAttribute("docker_images", images);
|
||||
model.addAttribute("docker_containers", containers);
|
||||
|
||||
genOsList();
|
||||
model.addAttribute("availableOs", availableOs);
|
||||
|
||||
return("portal");
|
||||
|
Loading…
Reference in New Issue
Block a user