jclouds-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Phillips <notificati...@github.com>
Subject Re: [jclouds-examples] The start of examples for OpenStack (#62)
Date Fri, 05 Sep 2014 22:54:59 GMT
> +    * The fourth argument (args[3]) must be your password
> +    *
> +    * For this example your endpoint must be the *admin endpoint* of your Identity service
> +    * (e.g. "http://111.222.333.444:35357/v2.0/")
> +    */
> +   public static void main(String[] args) throws IOException {
> +      CreateTenantAndUser createTenantAndUser = new CreateTenantAndUser(args[0], args[1],
args[2], args[3]);
> +
> +      try {
> +         Tenant tenant = createTenantAndUser.createTenant();
> +         createTenantAndUser.createUser(tenant);
> +         createTenantAndUser.close();
> +      } catch (Exception e) {
> +         e.printStackTrace();
> +      } finally {
> +         createTenantAndUser.close();

`createTenantAndUser.close();` in the `try` **and** the `finally`?

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-examples/pull/62/files#r17202785
Mime
View raw message