mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
return err when volume list fails
Signed-off-by: allencloud <allen.sun@daocloud.io>
This commit is contained in:
parent
e975dadaa0
commit
ed2d300ed0
1 changed files with 4 additions and 0 deletions
|
@ -499,6 +499,10 @@ func (daemon *Daemon) Volumes(filter string) ([]*types.Volume, []string, error)
|
|||
}
|
||||
|
||||
volumes, warnings, err := daemon.volumes.List()
|
||||
if err != nil {
|
||||
return nil, nil, err
|
||||
}
|
||||
|
||||
filterVolumes, err := daemon.filterVolumes(volumes, volFilters)
|
||||
if err != nil {
|
||||
return nil, nil, err
|
||||
|
|
Loading…
Add table
Reference in a new issue