Updated to use the '/v1/images' URL when uploading images to glance

in the Xen glance plugin. Fixes issue where snapshots failed to get uploaded.
This commit is contained in:
Dan Prince 2011-06-03 14:14:28 -04:00
parent 54c341feff
commit f521426039
1 changed files with 1 additions and 1 deletions

View File

@ -244,7 +244,7 @@ def _upload_tarball(staging_path, image_id, glance_host, glance_port, os_type):
conn = httplib.HTTPConnection(glance_host, glance_port)
# NOTE(sirp): httplib under python2.4 won't accept a file-like object
# to request
conn.putrequest('PUT', '/images/%s' % image_id)
conn.putrequest('PUT', '/v1/images/%s' % image_id)
# NOTE(sirp): There is some confusion around OVF. Here's a summary of
# where we currently stand: