mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-23 13:20:23 -07:00
VMware: remove unused imports (#43804)
Idea taken from https://github.com/ansible/ansible/pull/43402 Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
parent
1decbb92fc
commit
e364d717cb
21 changed files with 15 additions and 58 deletions
|
@ -9,7 +9,7 @@
|
|||
|
||||
# TODO:
|
||||
# * more jq examples
|
||||
# * optional folder heriarchy
|
||||
# * optional folder hierarchy
|
||||
|
||||
"""
|
||||
$ jq '._meta.hostvars[].config' data.json | head
|
||||
|
@ -38,9 +38,8 @@ import sys
|
|||
import uuid
|
||||
from time import time
|
||||
|
||||
import six
|
||||
from jinja2 import Environment
|
||||
from six import integer_types, string_types
|
||||
from six import integer_types, PY3
|
||||
from six.moves import configparser
|
||||
|
||||
try:
|
||||
|
@ -235,7 +234,7 @@ class VMWareInventory(object):
|
|||
'groupby_custom_field': False}
|
||||
}
|
||||
|
||||
if six.PY3:
|
||||
if PY3:
|
||||
config = configparser.ConfigParser()
|
||||
else:
|
||||
config = configparser.SafeConfigParser()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue