diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2018-10-27 10:00:43 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2018-10-27 11:34:15 +0200 |
commit | b27ccf34bf4e5ee618a66fa11c68a9690e395034 (patch) | |
tree | 29a5fbbad1f69fdedf8aced7cf0663b5e7467907 /resource | |
parent | 286d0b7dc3aa6e118eb7d5f19900377ae55ab41c (diff) |
resource: Allow .Data.Integrity to be accessed on its own
Fixes #5296
Diffstat (limited to 'resource')
-rw-r--r-- | resource/transform.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/resource/transform.go b/resource/transform.go index d3a215467..a4b1ca27c 100644 --- a/resource/transform.go +++ b/resource/transform.go @@ -231,6 +231,9 @@ func (r *transformedResource) Content() (interface{}, error) { } func (r *transformedResource) Data() interface{} { + if err := r.initTransform(false); err != nil { + return noData + } return r.MetaData } |