Skip to content

Commit

Permalink
chore: fix incorrect ManifestSpec.MarshalYAML signature
Browse files Browse the repository at this point in the history
Remove pointer from method, because otherwise MarshalYAML doesn't work when called from type asserted empty interface.

Signed-off-by: Dmitriy Matrenichev <dmitry.matrenichev@siderolabs.com>
  • Loading branch information
DmitriyMV committed May 5, 2022
1 parent 5d52802 commit b189e84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/machinery/resources/k8s/manifest.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func (spec ManifestSpec) DeepCopy() ManifestSpec {
}

// MarshalYAML implements yaml.Marshaler.
func (spec *ManifestSpec) MarshalYAML() (interface{}, error) {
func (spec ManifestSpec) MarshalYAML() (interface{}, error) {
return spec.Items, nil
}

Expand Down

0 comments on commit b189e84

Please sign in to comment.