Skip to content

Commit

Permalink
lxd/storage/ceph: Don't keep snapshots mounted
Browse files Browse the repository at this point in the history
Signed-off-by: Stéphane Graber <[email protected]>
  • Loading branch information
stgraber committed Jul 11, 2018
1 parent 66a55cd commit f3f3c7a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lxd/storage_ceph.go
Original file line number Diff line number Diff line change
Expand Up @@ -1558,15 +1558,15 @@ func (s *storageCeph) ContainerRestore(target container, source container) error
if err != nil {
return err
}
if ourStorageStop {
if !ourStorageStop {
defer source.StorageStart()
}

ourStorageStop, err = target.StorageStop()
if err != nil {
return err
}
if ourStorageStop {
if !ourStorageStop {
defer target.StorageStart()
}

Expand Down

0 comments on commit f3f3c7a

Please sign in to comment.