Skip to content

Commit

Permalink
marshal indent winsw service
Browse files Browse the repository at this point in the history
  • Loading branch information
et-nik committed Feb 22, 2024
1 parent caaaffc commit 8e277af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/processmanager/winsw.go
Original file line number Diff line number Diff line change
Expand Up @@ -276,10 +276,10 @@ func (pm *WinSW) buildServiceConfig(server *domain.Server) (string, error) {
serviceConfig.ServiceAccount.Username = server.User()
serviceConfig.ServiceAccount.Password = password

out, err := xml.Marshal(struct {
out, err := xml.MarshalIndent(struct {
WinSWServiceConfig
XMLName struct{} `xml:"service"`
}{WinSWServiceConfig: serviceConfig})
}{WinSWServiceConfig: serviceConfig}, "", " ")
if err != nil {
return "", errors.WithMessage(err, "failed to marshal xml")
}
Expand Down

0 comments on commit 8e277af

Please sign in to comment.