Description of problem: Currently, the example scripts found in /usr/share/doc/python3-ovirt-engine-sdk4/ do not have an option of returning Json formatted std out. They only return text stdout when they are done. It would be very helpful, and relatively easy to add an option for returning Json type data as a result of script execution. That way, it would be easier to parse the results. The following scripts are in particular interest for me: backup_vm.py upload_disk.py download_disk.py Version-Release number of selected component (if applicable): python3-ovirt-engine-sdk4-4.4.4-1.el8ev.x86_64
I think we can change the examples to use stderr for messages instead of stdout, and add --json option to write json object to stdout with the details of the operation. For example for upload_disk.py we we an have: { "storage-domain": "storage-name", "disk": "disk-id", "transfer": "transfer-id", "transfer-host": "host1", "image": "/path/to/file", "image-format": "qcow2", "disk-name": "file.raw", "disk-format": "raw", ... }