commit db16a3f8c1c82e3f70648e48ac54d88663b78a73
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
Change-Id: I665b7e0234650ba07e0d030a2d442d6599d0888a
(cherry picked from commit c70d0c33a5977ca7208fbadd876a646cd37ffb31)
Reviewed: https:/ /review. opendev. org/c/openstack /keystone/ +/890481 /opendev. org/openstack/ keystone/ commit/ db16a3f8c1c82e3 f70648e48ac54d8 8663b78a73
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/2023.1
commit db16a3f8c1c82e3 f70648e48ac54d8 8663b78a73
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 7208fbadd876a64 6cd37ffb31)
Change-Id: I665b7e0234650b
(cherry picked from commit c70d0c33a5977ca