>  
> -                    Project project = 
> api.getProjectApi().get(Iterables.get(Splitter.on("@").split(in.identity), 
> 0));
> +                    String projectName = 
> Iterables.get(Splitter.on("@").split(in.identity), 0);
> +                    projectName = 
> Iterables.get(Splitter.on("-").split(projectName), 0);

>  from everything I can tell, I think this is safe

OK. As an optional change to perhaps make the use case clearer:
```
String projectName = Iterables.get(Splitter.on("@").split(in.identity), 0);
if (projectName.indexOf("-") != -1) {
  // ID of the form project_id-extended_...@developer.gserviceaccount.com
  projectName = Iterables.get(Splitter.on("-").split(projectName), 0);
}
...
```
? Also OK with leaving things as they are.

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-google/pull/9/files#r7393793

Reply via email to