jclouds-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Phillips <notificati...@github.com>
Subject Re: [jclouds-labs-openstack] JCLOUDS-494: Change EndpointParam parser to negotiate version for Glance API (#82)
Date Tue, 18 Mar 2014 20:44:14 GMT
> @@ -46,6 +47,11 @@ public void handleError(HttpCommand command, HttpResponse response)
{
>        message = message != null ? message : String.format("%s -> %s", command.getCurrentRequest().getRequestLine(),
>                 response.getStatusLine());
>        switch (response.getStatusCode()) {
> +         // This is exclusively to not throw exceptions on Glance version negotiation
> +         case 300:
> +            if (command.getCurrentRequest().getFirstHeaderOrNull(ZoneToEndpointNegotiateVersion.VERSION_NEGOTIATION_HEADER)
!= null)

Static import `ZoneToEndpointNegotiateVersion.VERSION_NEGOTIATION_HEADER`? But what causes
the 300 response from Glance in the firest place?

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-openstack/pull/82/files#r10724608
Mime
View raw message