diff options
author | Rob Crittenden <rcritten@redhat.com> | 2008-03-27 10:20:15 -0400 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2008-03-27 10:20:15 -0400 |
commit | 382ff1d29e6ac34b72b8e503a2938ae9effe1b72 (patch) | |
tree | fb0c4a272d5bc79b7e782f56fc2207d128f64b03 /ipa-server | |
parent | c1ae716afc49a9d293498a5ee37955bcf7edd983 (diff) | |
download | freeipa-382ff1d29e6ac34b72b8e503a2938ae9effe1b72.tar.gz freeipa-382ff1d29e6ac34b72b8e503a2938ae9effe1b72.tar.xz freeipa-382ff1d29e6ac34b72b8e503a2938ae9effe1b72.zip |
Put the replica hostname back together properly
439057
Diffstat (limited to 'ipa-server')
-rw-r--r-- | ipa-server/ipa-install/ipa-replica-install | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ipa-server/ipa-install/ipa-replica-install b/ipa-server/ipa-install/ipa-replica-install index 47b9934b..67485995 100644 --- a/ipa-server/ipa-install/ipa-replica-install +++ b/ipa-server/ipa-install/ipa-replica-install @@ -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": |