Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with getting specific tenant by ID #578

Closed
koztom opened this issue Feb 23, 2016 · 2 comments
Closed

Problem with getting specific tenant by ID #578

koztom opened this issue Feb 23, 2016 · 2 comments

Comments

@koztom
Copy link

koztom commented Feb 23, 2016

Hi,
It looks like, that get() method from TenantService (org.openstack4j.api.identity package) doesn't work.
I get null object every time - I'm sure I'm passing correct id. In other hand getting tenant by name works fine, I don't have problem with list() method also.
Library version I have is 2.0.9.

@vinodborole
Copy link
Contributor

@koztom please reopen if this issue still exists for u

@evgenyfedoruk
Copy link
Contributor

evgenyfedoruk commented Sep 21, 2016

Have the same problem.
Here is my code:
`List tenants = os.identity().tenants().list();
// Returns list of tenants as I expect.

Iterator tenant_iter = tenants.iterator()

KeystoneTenant tenant
while(tenant_iter.hasNext()) {

tenant = (tenant_iter.next())

Tenant t = os.identity().tenants().get(tenant.getId());

// returns null for all tenants in the list

}
`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants