Re: [ovirt-users] Creating templates in a blocking fashion from Python SDK

2016-04-11 Thread Juan Hernández
On 04/10/2016 12:16 PM, Yaniv Kaul wrote: > > > On Sun, Apr 10, 2016 at 11:02 AM, Yedidyah Bar David > wrote: > > On Sun, Apr 10, 2016 at 10:43 AM, Barak Korren > wrote: > > Hi there, I use the following Python SDK snippet to creat

Re: [ovirt-users] Creating templates in a blocking fashion from Python SDK

2016-04-10 Thread Barak Korren
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

Re: [ovirt-users] Creating templates in a blocking fashion from Python SDK

2016-04-10 Thread nicolas
El 2016-04-10 11:16, Yaniv Kaul escribió: On Sun, Apr 10, 2016 at 11:02 AM, Yedidyah Bar David wrote: On Sun, Apr 10, 2016 at 10:43 AM, Barak Korren wrote: Hi there, I use the following Python SDK snippet to create a template from an existing VM:      templ = ovirt.templates.add(        

Re: [ovirt-users] Creating templates in a blocking fashion from Python SDK

2016-04-10 Thread Nir Soffer
On Sun, Apr 10, 2016 at 1:16 PM, Yaniv Kaul wrote: > > > On Sun, Apr 10, 2016 at 11:02 AM, Yedidyah Bar David > wrote: >> >> On Sun, Apr 10, 2016 at 10:43 AM, Barak Korren wrote: >> > Hi there, I use the following Python SDK snippet to create a template >> > from an existing VM: >> > >> > te

Re: [ovirt-users] Creating templates in a blocking fashion from Python SDK

2016-04-10 Thread Yaniv Kaul
On Sun, Apr 10, 2016 at 11:02 AM, Yedidyah Bar David wrote: > On Sun, Apr 10, 2016 at 10:43 AM, Barak Korren wrote: > > Hi there, I use the following Python SDK snippet to create a template > > from an existing VM: > > > > templ = ovirt.templates.add( > > ovirtsdk.xml.Template(vm=vm,

Re: [ovirt-users] Creating templates in a blocking fashion from Python SDK

2016-04-10 Thread Yedidyah Bar David
On Sun, Apr 10, 2016 at 10:43 AM, Barak Korren wrote: > Hi there, I use the following Python SDK snippet to create a template > from an existing VM: > > templ = ovirt.templates.add( > ovirtsdk.xml.Template(vm=vm, name=vm.name) > ) > > This seems to launch a template creation task i

[ovirt-users] Creating templates in a blocking fashion from Python SDK

2016-04-10 Thread Barak Korren
Hi there, I use the following Python SDK snippet to create a template from an existing VM: templ = ovirt.templates.add( ovirtsdk.xml.Template(vm=vm, name=vm.name) ) This seems to launch a template creation task in a non-blocking manner, which makes the next command I run, which tr