Skip to content
Snippets Groups Projects
Commit dcec72df authored by Mohamed, Fawzi Roberto (fawzi)'s avatar Mohamed, Fawzi Roberto (fawzi)
Browse files

fix infoForPodName

parent d9be325e
Branches
No related tags found
No related merge requests found
...@@ -185,7 +185,7 @@ function podNameForRepl(repl) { ...@@ -185,7 +185,7 @@ function podNameForRepl(repl) {
/// returns the keys (user,...) for the given pod name /// returns the keys (user,...) for the given pod name
function infoForPodName(podName) { function infoForPodName(podName) {
const imageType = podName.slice(0,podName.indexOf('-')) 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) const user = podName.slice(imageType.length + 1, podName.length - imageSubtype.length - 1)
return { return {
imageType: imageType, imageType: imageType,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment