mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-28 01:41:14 -06:00
Put the replica hostname back together properly
439057
This commit is contained in:
parent
c1ae716afc
commit
382ff1d29e
@ -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":
|
||||
|
Loading…
Reference in New Issue
Block a user