Skip to content

Commit

Permalink
Send image properties to Glance
Browse files Browse the repository at this point in the history
Fixes bug 928549

Change-Id: Ie89e9c49c1fe25ed4acd680dd8c2c5e84173cdcd
  • Loading branch information
rconradharris committed Feb 7, 2012
1 parent 16882ad commit 4cad8ad
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plugins/xenserver/xenapi/etc/xapi.d/plugins/glance
Expand Up @@ -343,6 +343,10 @@ def _upload_tarball(staging_path, image_id, glance_host, glance_port,
if auth_token:
headers['x-auth-token'] = auth_token

for key, value in properties.iteritems():
header_key = "x-image-meta-property-%s" % key.replace('_', '-')
headers[header_key] = str(value)

for header, value in headers.iteritems():
conn.putheader(header, value)
conn.endheaders()
Expand Down

0 comments on commit 4cad8ad

Please sign in to comment.