summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorRick Harris <rconradharris@gmail.com>2011-09-16 20:07:38 +0000
committerRick Harris <rconradharris@gmail.com>2011-09-16 20:07:38 +0000
commit5652459c41534bed1d19a794659146ef99941f0f (patch)
tree2306003d71115b1444fb065fe57750dcb3dcbcac /plugins
parent9f2ef26d5e4e34c26bd3c8fe62b81bd6409de2c5 (diff)
downloadnova-5652459c41534bed1d19a794659146ef99941f0f.tar.gz
nova-5652459c41534bed1d19a794659146ef99941f0f.tar.xz
nova-5652459c41534bed1d19a794659146ef99941f0f.zip
Fixing list prepend
Diffstat (limited to 'plugins')
-rwxr-xr-xplugins/xenserver/xenapi/etc/xapi.d/plugins/glance2
1 files changed, 1 insertions, 1 deletions
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: