Skip to content

Commit a8c35c4

Browse files
committed
add comments to inform about the workaround
1 parent 806cb39 commit a8c35c4

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

internal/cmd/server/describe/describe.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,11 @@ func outputResult(p *print.Printer, outputFormat string, server *iaas.Server) er
118118

119119
return nil
120120
case print.YAMLOutputFormat:
121+
// This is a temporary workaround to get the desired base64 encoded yaml output for userdata
122+
// and will be replaced by a fix in the Go-SDK
123+
// ref: https://jira.schwarz/browse/STACKITSDK-246
121124
patchedServer := utils.ConvertToBase64PatchedServer(server)
125+
122126
details, err := yaml.MarshalWithOptions(patchedServer, yaml.IndentSequence(true), yaml.UseJSONMarshaler())
123127
if err != nil {
124128
return fmt.Errorf("marshal server: %w", err)

internal/cmd/server/list/list.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,11 @@ func outputResult(p *print.Printer, outputFormat string, servers []iaas.Server)
158158

159159
return nil
160160
case print.YAMLOutputFormat:
161+
// This is a temporary workaround to get the desired base64 encoded yaml output for userdata
162+
// and will be replaced by a fix in the Go-SDK
163+
// ref: https://jira.schwarz/browse/STACKITSDK-246
161164
patchedServers := utils.ConvertToBase64PatchedServers(servers)
165+
162166
details, err := yaml.MarshalWithOptions(patchedServers, yaml.IndentSequence(true), yaml.UseJSONMarshaler())
163167
if err != nil {
164168
return fmt.Errorf("marshal server: %w", err)

0 commit comments

Comments
 (0)