From 5652459c41534bed1d19a794659146ef99941f0f Mon Sep 17 00:00:00 2001 From: Rick Harris Date: Fri, 16 Sep 2011 20:07:38 +0000 Subject: Fixing list prepend --- plugins/xenserver/xenapi/etc/xapi.d/plugins/glance | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/xenserver/xenapi/etc/xapi.d/plugins/glance b/plugins/xenserver/xenapi/etc/xapi.d/plugins/glance index 49601b1cd..950b78707 100755 --- a/plugins/xenserver/xenapi/etc/xapi.d/plugins/glance +++ b/plugins/xenserver/xenapi/etc/xapi.d/plugins/glance @@ -215,7 +215,7 @@ def _import_vhds(sr_path, staging_path, uuid_stack): # 'snapshot' vhd needs to be copied into the SR before the base copy. # If it doesn't, then there is a possibliity that snapwatchd will # delete the base_copy since it is an unreferenced parent. - paths_to_move.insert(snap_info[0]) + paths_to_move.insert(0, snap_info[0]) # We return this snap as the VDI instead of image.vhd vdi_return_list.append(dict(vdi_type="os", vdi_uuid=snap_info[1])) else: -- cgit