Report all unmounted drives

- swift-recon cli now reports all unmounted drives.
- Fixes bug 1031060

Change-Id: Ia9e6bbf05215879b602e9dcb77d007094c494dc1
This commit is contained in:
Florian Hines 2012-07-30 15:09:14 -05:00
parent ceaf7606fe
commit f2f6b2f26c

View File

@ -212,11 +212,13 @@ class SwiftRecon(object):
(self._ptime(), len(hosts))
for url, response, status in self.pool.imap(recon.scout, hosts):
if status == 200:
stats[url] = []
for i in response:
stats[url] = i['device']
stats[url].append(i['device'])
for host in stats:
node = urlparse(host).netloc
print "Not mounted: %s on %s" % (stats[host], node)
for entry in stats[host]:
print "Not mounted: %s on %s" % (entry, node)
print "=" * 79
def expirer_check(self, hosts):