We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 87b87ca + c425baf commit d31319bCopy full SHA for d31319b
1 file changed
cmd/ps.go
@@ -92,9 +92,10 @@ func PsRestart(appID, target string) error {
92
93
if target != "" {
94
if strings.Contains(target, "-") {
95
- parts := strings.Split(target, "-")
+ replaced := strings.Replace(target, appID + "-", "", 1)
96
+ parts := strings.Split(replaced, "-")
97
// the API requires the type, for now
- psType = parts[len(parts)-2]
98
+ psType = parts[0]
99
// process name is the full pod
100
psName = target
101
} else {
0 commit comments