mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-07-29 10:54:44 +00:00
Fix raise call for Python3 support
This commit is contained in:
@@ -80,7 +80,7 @@ import inspect
|
||||
from ansible.module_utils.basic import AnsibleModule
|
||||
from ipapython.version import NUM_VERSION, VERSION
|
||||
if NUM_VERSION < 40400:
|
||||
raise Exception, "freeipa version '%s' is too old" % VERSION
|
||||
raise Exception("freeipa version '%s' is too old" % VERSION)
|
||||
from ipaplatform.paths import paths
|
||||
if NUM_VERSION >= 40500 and NUM_VERSION < 40590:
|
||||
from cryptography.hazmat.primitives import serialization
|
||||
|
||||
Reference in New Issue
Block a user