mirror of
https://github.com/containers/podman.git
synced 2025-06-20 17:13:43 +08:00
utils: drop dead function
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
@ -200,35 +200,6 @@ func getPodsFromContext(c *cliconfig.PodmanCommand, r *libpod.Runtime) ([]*libpo
|
|||||||
return pods, lastError
|
return pods, lastError
|
||||||
}
|
}
|
||||||
|
|
||||||
func getVolumesFromContext(c *cliconfig.PodmanCommand, r *libpod.Runtime) ([]*libpod.Volume, error) {
|
|
||||||
args := c.InputArgs
|
|
||||||
var (
|
|
||||||
vols []*libpod.Volume
|
|
||||||
lastError error
|
|
||||||
err error
|
|
||||||
)
|
|
||||||
|
|
||||||
if c.Bool("all") {
|
|
||||||
vols, err = r.Volumes()
|
|
||||||
if err != nil {
|
|
||||||
return nil, errors.Wrapf(err, "unable to get all volumes")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
for _, i := range args {
|
|
||||||
vol, err := r.GetVolume(i)
|
|
||||||
if err != nil {
|
|
||||||
if lastError != nil {
|
|
||||||
logrus.Errorf("%q", lastError)
|
|
||||||
}
|
|
||||||
lastError = errors.Wrapf(err, "unable to find volume %s", i)
|
|
||||||
continue
|
|
||||||
}
|
|
||||||
vols = append(vols, vol)
|
|
||||||
}
|
|
||||||
return vols, lastError
|
|
||||||
}
|
|
||||||
|
|
||||||
//printParallelOutput takes the map of parallel worker results and outputs them
|
//printParallelOutput takes the map of parallel worker results and outputs them
|
||||||
// to stdout
|
// to stdout
|
||||||
func printParallelOutput(m map[string]error, errCount int) error {
|
func printParallelOutput(m map[string]error, errCount int) error {
|
||||||
|
Reference in New Issue
Block a user