Send image properties to Glance
Fixes bug 928549 Change-Id: Ie89e9c49c1fe25ed4acd680dd8c2c5e84173cdcd
This commit is contained in:
parent
16882ad36b
commit
4cad8add20
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user