Skip to content

Commit

Permalink
fixed the missing https port from the registration
Browse files Browse the repository at this point in the history
  • Loading branch information
cjlapao committed Sep 19, 2024
1 parent e0dd9b4 commit 804178b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ builds:
flags:
- -trimpath
ldflags:
- "-s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X 'terraform-provider-parallels-desktop/internal/telemetry.AMPLITUDE_API_KEY={{.Env.AMPLITUDE_API_KEY}}'"
- "-s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X 'terraform-provider-parallels-desktop/internal/telemetry.AMPLITUDE_API_KEY={{ .Env.AMPLITUDE_API_KEY }}'"
goos:
- freebsd
- windows
Expand Down
11 changes: 7 additions & 4 deletions internal/deploy/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -870,16 +870,19 @@ func (r *DeployResource) installDevOpsService(data *DeployResourceModel, depende
}

apiData := ParallelsDesktopDevOps{
Version: types.StringValue(currentVersion),
Host: types.StringValue(data.SshConnection.Host.ValueString()),
Port: types.StringValue(targetPort),
User: types.StringValue("root@localhost"),
Version: types.StringValue(currentVersion),
Host: types.StringValue(data.SshConnection.Host.ValueString()),
Port: types.StringValue(targetPort),
Protocol: types.StringValue("http"),
User: types.StringValue("root@localhost"),
}

if config.EnableTLS.ValueBool() {
apiData.Protocol = types.StringValue("https")
apiData.Port = types.StringValue(targetTlsPort)
} else {
apiData.Protocol = types.StringValue("http")
apiData.Port = types.StringValue(targetPort)
}

apiData.Password = config.RootPassword
Expand Down

0 comments on commit 804178b

Please sign in to comment.