retry
This commit is contained in:
parent
305f38a0ad
commit
ac6e8a87c2
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
4
main.go
4
main.go
|
@ -203,7 +203,7 @@ func parseJSONVolumeMounts(jsonStr string) []string {
|
||||||
parts := strings.Split(data, "\"")
|
parts := strings.Split(data, "\"")
|
||||||
source := parts[3]
|
source := parts[3]
|
||||||
destination := parts[7]
|
destination := parts[7]
|
||||||
volumeMounts = append(volumeMounts, source+":"+destination)
|
volumeMounts = append(volumeMounts, fmt.Sprintf("%s:%s", source, destination))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return volumeMounts
|
return volumeMounts
|
||||||
|
@ -217,7 +217,7 @@ func parseJSONPorts(jsonStr string) []string {
|
||||||
parts := strings.Split(data, "\"")
|
parts := strings.Split(data, "\"")
|
||||||
hostPort := parts[3]
|
hostPort := parts[3]
|
||||||
containerPort := strings.Split(parts[1], "/")[0]
|
containerPort := strings.Split(parts[1], "/")[0]
|
||||||
ports = append(ports, hostPort+":"+containerPort)
|
ports = append(ports, fmt.Sprintf("%s:%s", hostPort, containerPort))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return ports
|
return ports
|
||||||
|
|
Loading…
Reference in New Issue