|
|
@ -9,7 +9,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
# TODO:
|
|
|
|
# TODO:
|
|
|
|
# * more jq examples
|
|
|
|
# * more jq examples
|
|
|
|
# * optional folder heriarchy
|
|
|
|
# * optional folder hierarchy
|
|
|
|
|
|
|
|
|
|
|
|
"""
|
|
|
|
"""
|
|
|
|
$ jq '._meta.hostvars[].config' data.json | head
|
|
|
|
$ jq '._meta.hostvars[].config' data.json | head
|
|
|
@ -38,9 +38,8 @@ import sys
|
|
|
|
import uuid
|
|
|
|
import uuid
|
|
|
|
from time import time
|
|
|
|
from time import time
|
|
|
|
|
|
|
|
|
|
|
|
import six
|
|
|
|
|
|
|
|
from jinja2 import Environment
|
|
|
|
from jinja2 import Environment
|
|
|
|
from six import integer_types, string_types
|
|
|
|
from six import integer_types, PY3
|
|
|
|
from six.moves import configparser
|
|
|
|
from six.moves import configparser
|
|
|
|
|
|
|
|
|
|
|
|
try:
|
|
|
|
try:
|
|
|
@ -235,7 +234,7 @@ class VMWareInventory(object):
|
|
|
|
'groupby_custom_field': False}
|
|
|
|
'groupby_custom_field': False}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if six.PY3:
|
|
|
|
if PY3:
|
|
|
|
config = configparser.ConfigParser()
|
|
|
|
config = configparser.ConfigParser()
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
config = configparser.SafeConfigParser()
|
|
|
|
config = configparser.SafeConfigParser()
|
|
|
|