diff --git a/app/components.js b/app/components.js index 167f5807da96e9694e6bf1aac7d27713168da638..0d4ed90580beae82acb10b1ad7949989e79311ee 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,