fail with warning if no active volumes are found

This commit is contained in:
j 2014-03-12 17:45:44 +01:00
parent 506df5939f
commit 495c9086a4

View file

@ -582,6 +582,10 @@ class Client(object):
conn, c = self._conn()
volumes = self.active_volumes()
if not volumes:
print "no active volumes found"
return
for name in sorted(volumes):
prefix = volumes[name]
files = self.files(prefix)