From 013194b71b5452c1e70c6b59d578b4bd0877cc1f Mon Sep 17 00:00:00 2001 From: Jay Payne Date: Fri, 17 Sep 2010 15:54:05 +0000 Subject: [PATCH] corrected dir order and spelling errors in ls section --- bin/swift-get-nodes | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bin/swift-get-nodes b/bin/swift-get-nodes index e5932235cb..f24dd48f96 100755 --- a/bin/swift-get-nodes +++ b/bin/swift-get-nodes @@ -46,21 +46,21 @@ if len(sys.argv) > 4: hash_str = hash_path(account, container, obj) part, nodes = Ring(ring).get_nodes(account, container, obj) target = "%s/%s/%s" % (account, container, obj) - loc = 'object' + loc = 'objects' elif len(sys.argv) > 3: # Account, Container ring, account, container = sys.argv[1:4] hash_str = hash_path(account, container) part, nodes = Ring(ring).get_nodes(account, container) target = "%s/%s" % (account, container) - loc = 'container' + loc = 'containers' elif len(sys.argv) > 2: # Account ring, account = sys.argv[1:3] hash_str = hash_path(account) part, nodes = Ring(ring).get_nodes(account) target = "%s" % (account) - loc = 'account' + loc = 'accounts' more_nodes = list(Ring(ring).get_more_nodes(part)) @@ -88,7 +88,7 @@ for mnode in more_nodes: print "\n" for node in nodes: print 'ssh %s "ls -lah /srv/node/%s/%s/%s/%s/%s/"' \ - % (node['ip'], loc, node['device'], part, hash_str[-3:], hash_str) + % (node['ip'], node['device'], loc, part, hash_str[-3:], hash_str) for mnode in more_nodes: print 'ssh %s "ls -lah /srv/node/%s/%s/%s/%s/%s/" # [Handoff]' \ - % (mnode['ip'], loc, mnode['device'], part, hash_str[-3:], hash_str) + % (mnode['ip'], mnode['device'], loc, part, hash_str[-3:], hash_str)