Update storage lease via python sdk

Hi, I'm trying to update a storage lease via python sdk but I can’t seem to figure out how to wait for the storage lease configuration to finish. The vm status does not show “configuration in progress” just “up” and the event is created as soon as I issue the update, not when its done. Can someone give me a hint or point me to an example? https://github.com/Klaas-/ovirt-engine-sdk/blob/4094d3a2d4b011d4926e58374ddc... Greetings Klaas

Hi, with a little help from Red Hat my current solution looks like this: https://github.com/Klaas-/ovirt-engine-sdk/blob/663cc06516f9ace45ba046a3b2ba... using a correlation_id to find the running task with jobs_service and then watching that until it's finished I'll try to put a PR in through gerrit within the next days. Greetings Klaas
participants (1)
-
klaasdemter@gmail.com