> @@ -116,7 +117,14 @@ public boolean
> apply(org.jclouds.digitalocean.domain.Image input) {
> @Override
> public boolean deleteImage(String id) {
> try {
> - api.getImageApi().delete(Integer.parseInt(id));
> + // The id of the image can be an id or a slug. Use the
> corresponding method of the API depending on what is
> + // provided. If it can be parsed as a number, use the method to
> destroy by ID. Otherwise, destroy by slug.
> as there are not numeric slugs (and I don't expect there to be)
That's good enough for me, then ;-)
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/63/files#r13060521