> +        if (image != null) {
> +            logger.trace(">> found image [%s].", image.properties().name());
> +            return image;
> +        }
> +        // try search snapshots
> +        logger.trace("<< not found from images. searching for snapshot with 
> id=%s", id);
> +        Snapshot snapshot = api.snapshotApi().get(id);
> +        if (snapshot != null) {
> +            logger.trace(">> found snapshot [%s]", 
> snapshot.properties().name());
> +            return snapshot;
> +        }
> +        throw new ResourceNotFoundException("No image/snapshot with id '" + 
> id + "' was found");
> +    }
> +
> +    @Override
> +    public Iterable<DataCenter> listLocations() {

Locations are configured via properties, so this method should never be 
invoked. Let this method just throw an Unsupported op exception.

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/292/files/9251ab7434bcafb1dcbec5a718acc3c24517c94d#r73311769

Reply via email to