fail with warning if no active volumes are found
This commit is contained in:
parent
506df5939f
commit
495c9086a4
1 changed files with 4 additions and 0 deletions
|
@ -582,6 +582,10 @@ class Client(object):
|
||||||
conn, c = self._conn()
|
conn, c = self._conn()
|
||||||
|
|
||||||
volumes = self.active_volumes()
|
volumes = self.active_volumes()
|
||||||
|
if not volumes:
|
||||||
|
print "no active volumes found"
|
||||||
|
return
|
||||||
|
|
||||||
for name in sorted(volumes):
|
for name in sorted(volumes):
|
||||||
prefix = volumes[name]
|
prefix = volumes[name]
|
||||||
files = self.files(prefix)
|
files = self.files(prefix)
|
||||||
|
|
Loading…
Reference in a new issue