mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-05-10 11:11:29 -07:00
Use ansible.module_utils.six in inventory scripts (#55000)
* Use six from ansible.module_utils for inventory scripts Remove skips from sanity test * Change all imports of ConfigParser to use module_utils.six.moves * Remove commented out lines * Fix six imports
This commit is contained in:
parent
97f706810c
commit
3cd98a9fcc
33 changed files with 48 additions and 109 deletions
|
@ -122,12 +122,7 @@ import sys
|
|||
import inspect
|
||||
from azure.keyvault import KeyVaultClient
|
||||
|
||||
try:
|
||||
# python2
|
||||
import ConfigParser as cp
|
||||
except ImportError:
|
||||
# python3
|
||||
import configparser as cp
|
||||
from ansible.module_utils.six.moves import configparser as cp
|
||||
|
||||
from os.path import expanduser
|
||||
import ansible.module_utils.six.moves.urllib.parse as urlparse
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue