aboutsummaryrefslogtreecommitdiff
path: root/vendor/gopkg.in/yaml.v3/encode.go
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-07-02 08:33:02 -0400
committerGitHub <noreply@github.com>2021-07-02 08:33:02 -0400
commit04209873562dff25c5d6f800e4a535dff18d485a (patch)
tree67f0ee2916812072967707ae6de779ebbcdb0476 /vendor/gopkg.in/yaml.v3/encode.go
parent955c1d2bfeac0c399bbc4d82fd7b72ed4cc868d3 (diff)
parent735be12481cdc3edfcbca3500172d2164255e1a3 (diff)
downloadpodman-04209873562dff25c5d6f800e4a535dff18d485a.tar.gz
podman-04209873562dff25c5d6f800e4a535dff18d485a.tar.bz2
podman-04209873562dff25c5d6f800e4a535dff18d485a.zip
Merge pull request #10844 from vrothberg/vendor-common
vendor containers/common@main
Diffstat (limited to 'vendor/gopkg.in/yaml.v3/encode.go')
-rw-r--r--vendor/gopkg.in/yaml.v3/encode.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/vendor/gopkg.in/yaml.v3/encode.go b/vendor/gopkg.in/yaml.v3/encode.go
index 45e8d1e1b..de9e72a3e 100644
--- a/vendor/gopkg.in/yaml.v3/encode.go
+++ b/vendor/gopkg.in/yaml.v3/encode.go
@@ -120,6 +120,11 @@ func (e *encoder) marshal(tag string, in reflect.Value) {
e.nodev(in)
return
case Node:
+ if !in.CanAddr() {
+ var n = reflect.New(in.Type()).Elem()
+ n.Set(in)
+ in = n
+ }
e.nodev(in.Addr())
return
case time.Time: