Skip to content

Commit

Permalink
bugfix: operator tools expect yaml with 2 spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
zach-source committed Nov 3, 2021
1 parent a4b6637 commit 5c1e11e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/pullspec/pullspec.go
Original file line number Diff line number Diff line change
Expand Up @@ -377,8 +377,9 @@ func (csv *OperatorCSV) ToYaml() ([]byte, error) {
buff := bytes.Buffer{}

enc := yamlv3.NewEncoder(&buff)
err := enc.Encode(&csv.data.Object)
enc.SetIndent(2)

err := enc.Encode(&csv.data.Object)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 5c1e11e

Please sign in to comment.