Skip to content

Commit 70e149d

Browse files
authored
Merge pull request dapr#769 from berndverst/release-1.3
Cherry Pick: Run command: fix bool args passed to daprd (dapr#768)
2 parents 59e800e + 655619a commit 70e149d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pkg/standalone/run.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,12 +136,12 @@ func getDaprCommand(appID string, daprHTTPPort int, daprGRPCPort int, appPort in
136136

137137
args = append(
138138
args,
139-
"--enable-profiling", "true",
139+
"--enable-profiling",
140140
"--profile-port", strconv.Itoa(profilePort))
141141
}
142142

143143
if appSSL {
144-
args = append(args, "--app-ssl", "true")
144+
args = append(args, "--app-ssl")
145145
}
146146

147147
cmd := exec.Command(daprCMD, args...)

pkg/standalone/run_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ func TestRun(t *testing.T) {
106106
assertArgumentEqual(t, "app-protocol", "http", output.DaprCMD.Args)
107107
assertArgumentEqual(t, "app-port", "3000", output.DaprCMD.Args)
108108
assertArgumentEqual(t, "components-path", DefaultComponentsDirPath(), output.DaprCMD.Args)
109-
assertArgumentEqual(t, "app-ssl", "true", output.DaprCMD.Args)
109+
assertArgumentEqual(t, "app-ssl", "", output.DaprCMD.Args)
110110
assertArgumentEqual(t, "metrics-port", "9001", output.DaprCMD.Args)
111111
if runtime.GOOS == "windows" {
112112
assertArgumentEqual(t, "placement-host-address", "localhost:6050", output.DaprCMD.Args)

0 commit comments

Comments
 (0)