Comment 6 for bug 1819453

Revision history for this message
Corey Bryant (corey.bryant) wrote :

Here's a patch to force this failure to occur on Queens:

From 9ef61915093d8892f1d4e750c64a0d043acb8a7d Mon Sep 17 00:00:00 2001
From: Corey Bryant <email address hidden>
Date: Tue, 12 Mar 2019 17:07:04 -0400
Subject: [PATCH] First list_users() to fail due to id=None on Queens

Change-Id: I5516817d053d4ce542f6ed0f1d406dccfaad420c
---
 keystone/identity/controllers.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/keystone/identity/controllers.py b/keystone/identity/controllers.py
index da0f1aecb..b63b02731 100644
--- a/keystone/identity/controllers.py
+++ b/keystone/identity/controllers.py
@@ -70,6 +70,7 @@ class UserV3(controller.V3Controller):
         refs = PROVIDERS.identity_api.list_users(
             domain_scope=domain, hints=hints
         )
+ refs[0]['id'] = None
         return UserV3.wrap_collection(request.context_dict, refs, hints=hints)

     @controller.filterprotected('domain_id', 'enabled', 'name',
--
2.20.1