Skip to content

Commit 8c62bf2

Browse files
committed
fix: output of describe command
1 parent 674d387 commit 8c62bf2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

internal/cmd/beta/image/describe/describe.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ func outputResult(p *print.Printer, model *inputModel, resp *iaas.Image) error {
106106

107107
return nil
108108
case print.YAMLOutputFormat:
109-
details, err := yaml.MarshalWithOptions(resp, yaml.IndentSequence(true))
109+
details, err := yaml.MarshalWithOptions(resp, yaml.IndentSequence(true), yaml.UseJSONMarshaler())
110110
if err != nil {
111111
return fmt.Errorf("marshal image: %w", err)
112112
}
@@ -142,11 +142,11 @@ func outputResult(p *print.Printer, model *inputModel, resp *iaas.Image) error {
142142
table.AddSeparator()
143143
}
144144
if distro := config.OperatingSystemDistro; distro != nil {
145-
table.AddRow("OPERATING SYSTEM DISTRIBUTION", *distro)
145+
table.AddRow("OPERATING SYSTEM DISTRIBUTION", *distro.Get())
146146
table.AddSeparator()
147147
}
148148
if version := config.OperatingSystemVersion; version != nil {
149-
table.AddRow("OPERATING SYSTEM VERSION", *version)
149+
table.AddRow("OPERATING SYSTEM VERSION", *version.Get())
150150
table.AddSeparator()
151151
}
152152
if uefi := config.Uefi; uefi != nil {

0 commit comments

Comments
 (0)