diff options
author | Martin Basti <mbasti@redhat.com> | 2015-04-27 14:42:31 +0200 |
---|---|---|
committer | Petr Vobornik <pvoborni@redhat.com> | 2015-05-05 11:56:49 +0200 |
commit | 522cbb23f129033f836e40282ca41e76d315cbe3 (patch) | |
tree | 5990a234426982bb6602b469768dc28332bfc260 /ipaserver/install/installutils.py | |
parent | 978298882b06dcf8a86a8d6ec60d7f1266aac697 (diff) | |
download | freeipa-522cbb23f129033f836e40282ca41e76d315cbe3.tar.gz freeipa-522cbb23f129033f836e40282ca41e76d315cbe3.tar.xz freeipa-522cbb23f129033f836e40282ca41e76d315cbe3.zip |
move realm_to_serverid to installutils module
To avoid cyclic imports realm_to_serverid function had to be moved to
installutils from dsinstance.
Required for: https://fedorahosted.org/freeipa/ticket/4925
Reviewed-By: Martin Babinsky <mbabinsk@redhat.com>
Diffstat (limited to 'ipaserver/install/installutils.py')
-rw-r--r-- | ipaserver/install/installutils.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ipaserver/install/installutils.py b/ipaserver/install/installutils.py index 8a4f2cada..dc41c0f87 100644 --- a/ipaserver/install/installutils.py +++ b/ipaserver/install/installutils.py @@ -1105,3 +1105,6 @@ def check_version(): ) else: raise UpgradeMissingVersionError("no data_version stored") + +def realm_to_serverid(realm_name): + return "-".join(realm_name.split(".")) |