From f2f6b2f26ca82c369629146ab1b97cd1b15871d1 Mon Sep 17 00:00:00 2001 From: Florian Hines Date: Mon, 30 Jul 2012 15:09:14 -0500 Subject: [PATCH] Report all unmounted drives - swift-recon cli now reports all unmounted drives. - Fixes bug 1031060 Change-Id: Ia9e6bbf05215879b602e9dcb77d007094c494dc1 --- bin/swift-recon | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bin/swift-recon b/bin/swift-recon index 48b00f02a6..eecf94b127 100755 --- a/bin/swift-recon +++ b/bin/swift-recon @@ -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):