Skip to content

Commit 6e2413a

Browse files
authored
Fix wrong process id format (#215)
1 parent f10be08 commit 6e2413a

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGES.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ Release Notes.
1515

1616
### Bug Fixes
1717

18+
* Fix wrong process id format by @mrproliu in https://github.com/apache/skywalking-cli/pull/215
19+
1820
0.14.0
1921
------------------
2022

internal/commands/interceptor/process.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ func parseProcess(required bool, idFlagName, nameFlagName, instanceIDFlagName st
8383
if instanceID == "" {
8484
return fmt.Errorf(`"--%s" is specified but its related service name or id is not given`, nameFlagName)
8585
}
86-
id = fmt.Sprintf("%x", sha256.Sum256([]byte(fmt.Sprintf("%s_%s", instanceID, name))))
86+
id = fmt.Sprintf("%x", sha256.Sum256([]byte(fmt.Sprintf("%s_%s", name, instanceID))))
8787
}
8888

8989
return ctx.Set(idFlagName, id)

0 commit comments

Comments
 (0)