[ovirt-users] Creating templates in a blocking fashion from Python SDK
Barak Korren
bkorren at redhat.com
Mon Apr 11 06:30:43 UTC 2016
>>>>
>>>> Is there a way to block on the template creation task and not
>>>> return to the code until it finishes?
>>>
>>>
>>> I don't think so, but you can loop waiting, see e.g.:
>>>
>>> http://www.ovirt.org/develop/api/pythonapi/#create-a-template-from-vm
>>> [2]
>>
>>
>> I wish we could have an extra parameters on the Python SDK that would
>> do this exact loop for us, since essentially most use cases require
>> this.
I see most SDK action-creating methods have an optional
"correlation_id" string argument, could that be used to somehow track
the task and figure out when it is done?
--
Barak Korren
bkorren at redhat.com
RHEV-CI Team
More information about the Users
mailing list