Skip to content
Snippets Groups Projects
Commit 6e3f133a authored by Thomas Woerner's avatar Thomas Woerner
Browse files

library/ipafstore.py: Compatibilty to ipa 4.4 and later, new version check

parent 56063ae3
Branches
Tags
No related merge requests found
...@@ -52,7 +52,13 @@ RETURN = ''' ...@@ -52,7 +52,13 @@ RETURN = '''
''' '''
from ansible.module_utils.basic import AnsibleModule from ansible.module_utils.basic import AnsibleModule
from ipalib.install import sysrestore from ipapython.version import NUM_VERSION, VERSION
if NUM_VERSION < 40400:
raise Exception, "freeipa version '%s' is too old" % VERSION
try:
from ipalib.install import sysrestore
except ImportError:
from ipapython import sysrestore
from ipaplatform.paths import paths from ipaplatform.paths import paths
def main(): def main():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment