> - compose(new Function<Credentials, String>() { > - public String apply(Credentials in) { > - // ID should be of the form > project...@developer.gserviceaccount.com > - // OR (increasingly often) > project_id-extended_...@developer.gserviceaccount.com > - // where project_id is the NUMBER; > - // HERE we also accept simply "project" as the identity, > if no "@" is present; > - // this is used in tests, but not sure if it is valid in > the wild. > - String projectName = in.identity; > - if (projectName.indexOf("@") != -1) { > - projectName = > Iterables.get(Splitter.on("@").split(projectName), 0); > - if (projectName.indexOf("-") != -1) { > - // if ID is of the form > project_id-extended_...@developer.gserviceaccount.com > - projectName = > Iterables.get(Splitter.on("-").split(projectName), 0); > - } > - } > - return api.getProjectApi().get(projectName).name();
@ccustine we used to set project name here, which was only used in compute api. Users would have to remember and pass the project name manually. --- Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds-labs-google/pull/88/files#r20096306