iipaclient: RawConfigParser is not always provided by six.moves.configparser

six.moves.configparser does not always provide RawConfigParser.
This commit is contained in:
Thomas Woerner
2019-07-22 18:27:02 +02:00
parent aff6d9005c
commit 184f6f08da
2 changed files with 9 additions and 2 deletions

View File

@@ -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