From 40c70b077cb0ba866ea50b583cc18c2438bcbb68 Mon Sep 17 00:00:00 2001 From: tdviet Date: Tue, 27 Jan 2015 11:26:41 +0100 Subject: [PATCH] Update base.py line 99: change from u,username to name. Tested with Havana --- caso/extract/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/caso/extract/base.py b/caso/extract/base.py index d45f118c..c8dbe3ff 100644 --- a/caso/extract/base.py +++ b/caso/extract/base.py @@ -96,7 +96,7 @@ def _get_keystone_client(self, tenant): def _get_keystone_users(self, ks_client): tenant_id = ks_client.tenant_id users = ks_client.users.list(tenant_id=tenant_id) - return {u.id: u.username for u in users} + return {u.id: u.name for u in users} def vm_status(self, status): return openstack_vm_statuses.get(status.lower(), 'unknown')