jclouds-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jasdeep-hundal <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:56:20 GMT
> +                           break;
> +                        }
> +                     }
> +                  } catch (Exception ex) {
> +                     throw Throwables.propagate(ex);
> +                  }
> +                  if (versionEndpointUri == null)
> +                     throw new HttpException("Glance endpoint does not support API version:
" + apiVersion);
> +                  return versionEndpointUri;
> +              }
> +         });
> +   }
> +
> +   @Override
> +   public URI apply(Object from) {
> +      checkArgument(from != null && from instanceof String, "you must specify
a zone, as a String argument");

This and the next bit were copied from the ZoneToEndpoint class in jclouds core. (Just a note
in case you want to make the fix there as well).

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