[Kimchi-devel] [PATCH 1/6] Append clone to target_uri for vm clone task

Christy Perez christy at linux.vnet.ibm.com
Tue Apr 28 19:10:55 UTC 2015


I got IMAP undelivered notifications for this set of patches, so I
resent. Stay tuned. :)

On 04/28/2015 02:04 PM, Christy Perez wrote:
> So that we can differentiate between clone and create tasks for
> VMs.
> 
> Signed-off-by: Christy Perez <christy at linux.vnet.ibm.com>
> ---
>  src/kimchi/model/vms.py | 5 ++---
>  1 file changed, 2 insertions(+), 3 deletions(-)
> 
> diff --git a/src/kimchi/model/vms.py b/src/kimchi/model/vms.py
> index a6ca27b..5f8c3da 100644
> --- a/src/kimchi/model/vms.py
> +++ b/src/kimchi/model/vms.py
> @@ -229,9 +229,8 @@ def clone(self, name):
>          new_name = get_next_clone_name(current_vm_names, name)
> 
>          # create a task with the actual clone function
> -        taskid = add_task(u'/vms/%s' % new_name, self._clone_task,
> -                          self.objstore,
> -                          {'name': name, 'new_name': new_name})
> +        taskid = add_task(u'/vms/%s/clone' % new_name, self._clone_task,
> +                          self.objstore, {'name': name, 'new_name': new_name})
> 
>          return self.task.lookup(taskid)
> 




More information about the Kimchi-devel mailing list