From 5ddfe5d95de894919b82f68603f08984342c1f58 Mon Sep 17 00:00:00 2001 From: Matthew Heon Date: Wed, 11 Sep 2019 10:17:28 -0400 Subject: 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 --- libpod/boltdb_state.go | 1 + 1 file changed, 1 insertion(+) (limited to 'libpod') 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 { -- cgit v1.2.3-54-g00ecf