mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #23258 from allencloud/return-err-when-volume-list-fails
return err when volume list fails
This commit is contained in:
commit
506e8eda40
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