From dcec72df5518f86d11f6e9c2baeb724fc722c28c Mon Sep 17 00:00:00 2001 From: Fawzi Mohamed <fawzi.mohamed@fhi-berlin.mpg.de> Date: Tue, 2 Oct 2018 17:58:07 +0200 Subject: [PATCH] fix infoForPodName --- app/components.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/components.js b/app/components.js index 167f580..0d4ed90 100644 --- a/app/components.js +++ b/app/components.js @@ -185,7 +185,7 @@ function podNameForRepl(repl) { /// returns the keys (user,...) for the given pod name function infoForPodName(podName) { const imageType = podName.slice(0,podName.indexOf('-')) - const imageSubtype = podName.slice(podName.lastIndexOf('-'), podName.length) + const imageSubtype = podName.slice(podName.lastIndexOf('-') + 1, podName.length) const user = podName.slice(imageType.length + 1, podName.length - imageSubtype.length - 1) return { imageType: imageType, -- GitLab