federation mapping debug has useless direct_maps information
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Identity (keystone) |
Fix Released
|
Medium
|
Colleen Murphy |
Bug Description
If you use keystone-manage mapping_engine --engine-debug to test your rules (or when debug logging is on during run time) the diagnostic output fails to emit a piece of crucial information, the contents direct map array. What you'll get instead is this:
direct_maps: <keystone.
That's because the DirectMaps class does not have a __str__() method and Python resorts to __ref__() in the absence of __str__() and all __ref__() does is print the class name and it's memory location, not very useful.
If DirectMaps had a __str__() function like this:
def __str__(self):
return '%s' % self._matches
the debug output would include the actual direct map data like this:
direct_maps: [['<email address hidden>'], ['Group1', 'Group3']]
Changed in keystone: | |
milestone: | none → train-rc1 |
Changed in keystone: | |
assignee: | Lance Bragstad (lbragstad) → Colleen Murphy (krinkle) |
Fix proposed to branch: master /review. opendev. org/678700
Review: https:/