
On Thu, Jun 21, 2018 at 3:06 PM, Gianluca Cecchi <gianluca.cecchi@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