Skip to content

Commit

Permalink
fix: correctly pass command line args, "-c=" instead of "-c " (#154)
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelScofield committed Sep 24, 2023
1 parent 4394eab commit 5035501
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/deployer/baremetal/component/datanode.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ func (d *datanode) BuildArgs(ctx context.Context, params ...interface{}) []strin
}

if len(d.config.Config) > 0 {
args = append(args, fmt.Sprintf("-c %s", d.config.Config))
args = append(args, fmt.Sprintf("-c=%s", d.config.Config))
}

return args
Expand Down
2 changes: 1 addition & 1 deletion pkg/deployer/baremetal/component/frontend.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ func (f *frontend) BuildArgs(ctx context.Context, params ...interface{}) []strin
}

if len(f.config.Config) > 0 {
args = append(args, fmt.Sprintf("-c %s", f.config.Config))
args = append(args, fmt.Sprintf("-c=%s", f.config.Config))
}

return args
Expand Down
2 changes: 1 addition & 1 deletion pkg/deployer/baremetal/component/metasrv.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ func (m *metaSrv) BuildArgs(ctx context.Context, params ...interface{}) []string
}

if len(m.config.Config) > 0 {
args = append(args, fmt.Sprintf("-c %s", m.config.Config))
args = append(args, fmt.Sprintf("-c=%s", m.config.Config))
}

return args
Expand Down

0 comments on commit 5035501

Please sign in to comment.