Pass through YAML parsed object instead of string. (#2347)
This commit is contained in:
parent
41d68b5498
commit
ec0fff49ea
1 changed files with 4 additions and 1 deletions
|
@ -334,6 +334,9 @@ def main():
|
||||||
file_reference = module.params.get('file_reference')
|
file_reference = module.params.get('file_reference')
|
||||||
|
|
||||||
if inline_data:
|
if inline_data:
|
||||||
|
if not isinstance(inline_data, dict) and not isinstance(inline_data, list):
|
||||||
|
data = yaml.load(inline_data)
|
||||||
|
else:
|
||||||
data = inline_data
|
data = inline_data
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in a new issue