summaryrefslogtreecommitdiff
path: root/libpod
diff options
context:
space:
mode:
authorMatthew Heon <matthew.heon@pm.me>2019-09-11 10:17:28 -0400
committerMatthew Heon <matthew.heon@pm.me>2019-09-11 10:17:28 -0400
commit5ddfe5d95de894919b82f68603f08984342c1f58 (patch)
tree0010806ab913d52d6037aac96e5bec4c9083e648 /libpod
parent093013b099cd2397fdf3aedc213d182064be5d27 (diff)
downloadpodman-5ddfe5d95de894919b82f68603f08984342c1f58.tar.gz
podman-5ddfe5d95de894919b82f68603f08984342c1f58.tar.bz2
podman-5ddfe5d95de894919b82f68603f08984342c1f58.zip
Volume lookup needs to include state to unmarshal into
Lookup was written before volume states merged, but merged after, and CI didn't catch the obvious failure here. Without a valid state, we try to unmarshall into a null pointer, and 'volume rm' is completely broken because of it. Signed-off-by: Matthew Heon <matthew.heon@pm.me>
Diffstat (limited to 'libpod')
-rw-r--r--libpod/boltdb_state.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/libpod/boltdb_state.go b/libpod/boltdb_state.go
index 4e7f78f13..a6fd9a7d8 100644
--- a/libpod/boltdb_state.go
+++ b/libpod/boltdb_state.go
@@ -1749,6 +1749,7 @@ func (s *BoltState) LookupVolume(name string) (*Volume, error) {
volume := new(Volume)
volume.config = new(VolumeConfig)
+ volume.state = new(VolumeState)
db, err := s.getDBCon()
if err != nil {