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