diff options
| author | Cerberus <matt.dietz@rackspace.com> | 2011-02-10 13:42:57 -0600 |
|---|---|---|
| committer | Cerberus <matt.dietz@rackspace.com> | 2011-02-10 13:42:57 -0600 |
| commit | d8a7a76cd4fd22a6ad9fc1a7b879a8dbffcede5f (patch) | |
| tree | c8c13c9d3291f2f531f946e8718b3ae0f4116a82 /plugins | |
| parent | 5ed3abd0c689517db7a76e19c5b44fa4cc5d811f (diff) | |
| download | nova-d8a7a76cd4fd22a6ad9fc1a7b879a8dbffcede5f.tar.gz nova-d8a7a76cd4fd22a6ad9fc1a7b879a8dbffcede5f.tar.xz nova-d8a7a76cd4fd22a6ad9fc1a7b879a8dbffcede5f.zip | |
Some more cleanup
Diffstat (limited to 'plugins')
| -rw-r--r-- | plugins/xenserver/xenapi/etc/xapi.d/plugins/migration | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/xenserver/xenapi/etc/xapi.d/plugins/migration b/plugins/xenserver/xenapi/etc/xapi.d/plugins/migration index e81b18a5e..0fb7b5806 100644 --- a/plugins/xenserver/xenapi/etc/xapi.d/plugins/migration +++ b/plugins/xenserver/xenapi/etc/xapi.d/plugins/migration @@ -70,6 +70,7 @@ def move_vhds_into_sr(session, args): instance_id = params['instance_id'] sr_path = get_sr_path(session) + sr_temp_path = "%s/images/" % sr_path # Discover the copied VHDs locally, and then set up paths to copy # them to under the SR @@ -77,7 +78,7 @@ def move_vhds_into_sr(session, args): source_base_copy_path = "%s/base_copy.vhd" % source_image_path source_cow_path = "%s/cow.vhd" % source_image_path - temp_vhd_path = "%s/instance%d/" % (sr_path, instance_id) + temp_vhd_path = "%s/instance%d/" % (sr_temp_path, instance_id) new_base_copy_path = "%s/%s.vhd" % (temp_vhd_path, str(uuid.uuid4())) new_cow_path = "%s/%s.vhd" % (temp_vhd_path, str(uuid.uuid4())) |
