diff options
Diffstat (limited to 'src/main/java/net/libertacasa/pubsh')
-rw-r--r-- | src/main/java/net/libertacasa/pubsh/web/WebApplication.java | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/main/java/net/libertacasa/pubsh/web/WebApplication.java b/src/main/java/net/libertacasa/pubsh/web/WebApplication.java index ed517e4..87c4682 100644 --- a/src/main/java/net/libertacasa/pubsh/web/WebApplication.java +++ b/src/main/java/net/libertacasa/pubsh/web/WebApplication.java @@ -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"); |