Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion hook-bootkit/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ func removeTinkWorkerContainer(ctx context.Context, cli *client.Client) error {
// https://github.com/tinkerbell/boots/blob/main/ipxe/hook.go
func parseCmdLine(cmdLines []string) (cfg tinkWorkerConfig) {
for i := range cmdLines {
cmdLine := strings.Split(cmdLines[i], "=")
cmdLine := strings.SplitN(cmdLines[i], "=", 2)
if len(cmdLine) == 0 {
continue
}
Expand Down
2 changes: 1 addition & 1 deletion hook-docker/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ func (d dockerConfig) writeToDisk(loc string) error {
// parseCmdLine will parse the command line.
func parseCmdLine(cmdLines []string) (cfg tinkConfig) {
for i := range cmdLines {
cmdLine := strings.Split(cmdLines[i], "=")
cmdLine := strings.SplitN(cmdLines[i], "=", 2)
if len(cmdLine) == 0 {
continue
}
Expand Down