On Thu, Jun 21, 2018 at 3:06 PM, Gianluca Cecchi <gianluca.cec...@gmail.com>
wrote:

>
> bootdisk = None
> for disk_attachment in disk_attachments:
>     disk = connection.follow_link(disk_attachment.disk)
>     if disk_attachment.bootable == True:
>         bootdisk = connection.follow_link(disk_attachment.disk)
>         break
>
>
As I already have the disk, it is better this one:

bootdisk = None
for disk_attachment in disk_attachments:
    disk = connection.follow_link(disk_attachment.disk)
    if disk_attachment.bootable == True:
        bootdisk = disk_attachment.disk
        break


> What if I would like to emit an event if for any reason the creation of
> the snapshot doesn't complete in a predefined elapsed time and manage it?
> I think I have also to manage the case when for any reason no disk is
> marked as bootable inside the VM I'm backing up...
>
> Gianluca
>
>

Still interesting to have feedback on these two latest points.
Thanks
Gianluca
_______________________________________________
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/YDYWWSBDYLW7HANVJ2ARJPFALMFLE2CG/

Reply via email to