Skip to content

Commit

Permalink
remove extra space
Browse files Browse the repository at this point in the history
(cherry picked from commit d8472ba)
  • Loading branch information
lut777 authored and oilbeater committed Apr 15, 2021
1 parent b65d41a commit 6574447
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/daemon/cniserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ func initChassisAnno(cfg *daemon.Configuration) error {
}

chassistr := string(chassisID)
node.Annotations[util.ChassisAnnotation] = strings.Replace(chassistr, "\n", "", -1)
node.Annotations[util.ChassisAnnotation] = strings.TrimSpace(chassistr)
patchPayloadTemplate :=
`[{
"op": "%s",
Expand Down

0 comments on commit 6574447

Please sign in to comment.