Put the replica hostname back together properly

439057
This commit is contained in:
Rob Crittenden 2008-03-27 10:20:15 -04:00
parent c1ae716afc
commit 382ff1d29e

View File

@ -144,9 +144,10 @@ def main():
read_info(dir, config)
config.host_name = get_host_name()
p = filename.split('-')
if p[len(p)-1] != config.host_name:
host = '-'.join(p[2:])
if host != config.host_name:
try:
print "This replica was created for '%s' but this machine is named '%s'" % (p[len(p)-1], config.host_name)
print "This replica was created for '%s' but this machine is named '%s'" % (host, config.host_name)
yesno = raw_input("This may cause problems. Continue? [Y/n]: ")
print ""
if not yesno or yesno.lower()[0] == "y":