commit c70d0c33a5977ca7208fbadd876a646cd37ffb31
Author: Mohammed Naser <email address hidden>
Date: Fri Oct 7 17:06:12 2022 +0000
fix(federation): allow using numerical group names
When using a numerical group name, the current codebase which
relies on ast.literal_eval does not account for the value
being a number. Therefore, it can be parsed as a number and
fail in further steps since it will not be a list.
This patch adds a test to handle that use case and refactor the
code that leverages ast.literal_eval to be the same everywhere
so that it adds that fix everywhere.
Reviewed: https:/ /review. opendev. org/c/openstack /keystone/ +/860726 /opendev. org/openstack/ keystone/ commit/ c70d0c33a5977ca 7208fbadd876a64 6cd37ffb31
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit c70d0c33a5977ca 7208fbadd876a64 6cd37ffb31
Author: Mohammed Naser <email address hidden>
Date: Fri Oct 7 17:06:12 2022 +0000
fix( federation) : allow using numerical group names
When using a numerical group name, the current codebase which
relies on ast.literal_eval does not account for the value
being a number. Therefore, it can be parsed as a number and
fail in further steps since it will not be a list.
This patch adds a test to handle that use case and refactor the
code that leverages ast.literal_eval to be the same everywhere
so that it adds that fix everywhere.
Closes-Bug: #1992186 a07e0d030a2d442 d6599d0888a
Change-Id: I665b7e0234650b