mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-24 05:40:23 -07:00
Fixing some v2 inventory bugs
This commit is contained in:
parent
b6a34518ad
commit
4d9bf37afa
6 changed files with 63 additions and 40 deletions
|
@ -66,7 +66,6 @@ class DataLoader():
|
|||
a JSON or YAML string.
|
||||
'''
|
||||
|
||||
#print("in load, data is: %s (%s)" % (data, type(data)))
|
||||
try:
|
||||
# we first try to load this data as JSON
|
||||
return json.loads(data)
|
||||
|
@ -109,8 +108,6 @@ class DataLoader():
|
|||
def _safe_load(self, stream, file_name=None):
|
||||
''' Implements yaml.safe_load(), except using our custom loader class. '''
|
||||
|
||||
#print("stream is: %s" % stream)
|
||||
#print("file name is: %s" % file_name)
|
||||
loader = AnsibleLoader(stream, file_name)
|
||||
try:
|
||||
return loader.get_single_data()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue