Commit dcec72df authored by Mohamed, Fawzi Roberto (fawzi)'s avatar Mohamed, Fawzi Roberto (fawzi)
Browse files

fix infoForPodName

parent d9be325e
......@@ -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,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment