mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-05-07 05:43:26 +00:00
iipaclient: RawConfigParser is not always provided by six.moves.configparser
six.moves.configparser does not always provide RawConfigParser.
This commit is contained in:
@@ -4,7 +4,10 @@
|
||||
import os
|
||||
import re
|
||||
import six
|
||||
from six.moves.configparser import RawConfigParser
|
||||
try:
|
||||
from six.moves.configparser import RawConfigParser
|
||||
except ImportError:
|
||||
from ConfigParser import RawConfigParser
|
||||
|
||||
from ansible.module_utils.basic import AnsibleModule
|
||||
|
||||
|
||||
@@ -192,7 +192,11 @@ import os
|
||||
import socket
|
||||
import inspect
|
||||
|
||||
from six.moves.configparser import RawConfigParser
|
||||
try:
|
||||
from six.moves.configparser import RawConfigParser
|
||||
except ImportError:
|
||||
from ConfigParser import RawConfigParser
|
||||
|
||||
from ansible.module_utils.basic import AnsibleModule
|
||||
from ansible.module_utils.ansible_ipa_client import (
|
||||
paths, sysrestore, options, CheckedIPAddress, validate_domain_name,
|
||||
|
||||
Reference in New Issue
Block a user