i should not convert to string... :)
for row in rows: t=(row[0]) rowarray_list.append(t) j=json.dumps({"_meta":{ "hostvars":{}},"instances":{"hosts":rowarray_list,"vars":{}}}) {"_meta": {"hostvars": {}}, "instances": {"hosts": ["abc","efg"], "vars": {}}}
Larz60+ write Aug-23-2021, 10:02 PM:
Please post all code, output and errors (it it's entirety) between their respective tags. Refer to BBCode help topic on how to post. Use the "Preview Post" button to make sure the code is presented as you expect before hitting the "Post Reply/Thread" button.
fixed.
Please post all code, output and errors (it it's entirety) between their respective tags. Refer to BBCode help topic on how to post. Use the "Preview Post" button to make sure the code is presented as you expect before hitting the "Post Reply/Thread" button.
fixed.