diff options
| author | Scott Moser <smoser@ubuntu.com> | 2011-09-14 12:52:00 -0400 |
|---|---|---|
| committer | Scott Moser <smoser@ubuntu.com> | 2011-09-14 12:52:00 -0400 |
| commit | a1b056abbdaf91d382c56967b4bfc886f54b95a7 (patch) | |
| tree | cd5e0bd4820edb7c69407d42c891326eb76b7866 /plugins | |
| parent | 092ff28b9f141368aed0d719140212e5fc8652f8 (diff) | |
| parent | 89736bf13562811cebb42cd6e3377d7f9e0a0b9c (diff) | |
resolve conflicts / merge with trunk revno 1569
Diffstat (limited to 'plugins')
| -rwxr-xr-x | plugins/xenserver/xenapi/etc/xapi.d/plugins/glance | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/xenserver/xenapi/etc/xapi.d/plugins/glance b/plugins/xenserver/xenapi/etc/xapi.d/plugins/glance index a06312890..1a9ac37e9 100755 --- a/plugins/xenserver/xenapi/etc/xapi.d/plugins/glance +++ b/plugins/xenserver/xenapi/etc/xapi.d/plugins/glance @@ -252,7 +252,11 @@ def _upload_tarball(staging_path, image_id, glance_host, glance_port, os_type, # NOTE(dprince): We need to resend any existing Glance meta/property # headers so they are preserved in Glance. We obtain them here with a # HEAD request. - conn.request('HEAD', '/v1/images/%s' % image_id) + conn.putrequest('HEAD', '/v1/images/%s' % image_id) + if auth_token: + conn.putheader('x-auth-token', auth_token) + conn.endheaders() + resp = conn.getresponse() if resp.status != httplib.OK: raise Exception("Unexpected response from Glance %i" % resp.status) |
