fix: dont list if no volumes
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
c69a3c23c5
commit
33ff04c686
|
@ -34,7 +34,12 @@ var appVolumeListCommand = &cli.Command{
|
||||||
}
|
}
|
||||||
|
|
||||||
table.AppendBulk(volTable)
|
table.AppendBulk(volTable)
|
||||||
table.Render()
|
|
||||||
|
if table.NumLines() > 0 {
|
||||||
|
table.Render()
|
||||||
|
} else {
|
||||||
|
logrus.Warnf("no volumes created for %s", app.Name)
|
||||||
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue