Skip to content

Commit

Permalink
Propagate conversion errors
Browse files Browse the repository at this point in the history
Kubernetes-commit: b9adf66929f09712f931d975034a2ef3940b3ec0
  • Loading branch information
liggitt authored and k8s-publishing-bot committed Sep 13, 2021
1 parent 4115bcf commit 9ab290c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/clientcmd/api/v1/conversion.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ func Convert_Map_string_To_runtime_Object_To_Slice_v1_NamedExtension(in *map[str
newExtension := (*in)[key]
oldExtension := runtime.RawExtension{}
if err := runtime.Convert_runtime_Object_To_runtime_RawExtension(&newExtension, &oldExtension, s); err != nil {
return nil
return err
}
namedExtension := NamedExtension{key, oldExtension}
*out = append(*out, namedExtension)
Expand Down

0 comments on commit 9ab290c

Please sign in to comment.