Merge "Give friendly notification in swift-get-nodes"
This commit is contained in:
commit
220db2e5b5
@ -123,17 +123,20 @@ for mnode in more_nodes:
|
|||||||
% (mnode['ip'], mnode['port'], mnode['device'], part,
|
% (mnode['ip'], mnode['port'], mnode['device'], part,
|
||||||
urllib.quote(target))
|
urllib.quote(target))
|
||||||
print "\n"
|
print "\n"
|
||||||
|
print 'Use your own device location of servers:'
|
||||||
|
print 'such as "export DEVICE=/srv/node"'
|
||||||
for node in nodes:
|
for node in nodes:
|
||||||
if hash_str:
|
if hash_str:
|
||||||
print 'ssh %s "ls -lah /srv/node/%s/%s/%s/%s/%s/"' % (
|
print 'ssh %s "ls -lah ${DEVICE:-/srv/node}/%s/%s/%s/%s/%s/"' % (
|
||||||
node['ip'], node['device'], loc, part, hash_str[-3:], hash_str)
|
node['ip'], node['device'], loc, part, hash_str[-3:], hash_str)
|
||||||
else:
|
else:
|
||||||
print 'ssh %s "ls -lah /srv/node/%s/%s/%s/"' % (
|
print 'ssh %s "ls -lah ${DEVICE:-/srv/node}/%s/%s/%s/"' % (
|
||||||
node['ip'], node['device'], loc, part)
|
node['ip'], node['device'], loc, part)
|
||||||
for mnode in more_nodes:
|
for mnode in more_nodes:
|
||||||
if hash_str:
|
if hash_str:
|
||||||
print 'ssh %s "ls -lah /srv/node/%s/%s/%s/%s/%s/" # [Handoff]' % (
|
print 'ssh %s "ls -lah ${DEVICE:-/srv/node}/%s/%s/%s/%s/%s/" '\
|
||||||
mnode['ip'], mnode['device'], loc, part, hash_str[-3:], hash_str)
|
'# [Handoff]' % (mnode['ip'], mnode['device'], loc, part,
|
||||||
|
hash_str[-3:], hash_str)
|
||||||
else:
|
else:
|
||||||
print 'ssh %s "ls -lah /srv/node/%s/%s/%s/" # [Handoff]' % (
|
print 'ssh %s "ls -lah ${DEVICE:-/srv/node}/%s/%s/%s/" # [Handoff]' % (
|
||||||
mnode['ip'], mnode['device'], loc, part)
|
mnode['ip'], mnode['device'], loc, part)
|
||||||
|
Loading…
Reference in New Issue
Block a user