> @@ -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)

300 is just what Glance returns as the status code when it offers up possible 
versions. Does seem a bit awkward, but it's what we're dealing with.

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

Reply via email to