Enhance rbac policy parser to correctly interpret user_id policy actions.

Currently, while nova in some places uses policy actions that contain
the syntax "user_id: %(user_id)s" [0], the rbac policy parser in Patrole
cannot understand it.

This patch enhances the rbac policy parser to correctly understand
policy actions containing the above syntax.

[0] https://github.com/openstack/nova/blob/master/nova/policies/keypairs.py

Closes-Bug: #1669211
Change-Id: Ibb76d9353e680e5a9557e8d5dcb848ee7b5652f7
Needed-By: Ib2ebe58ccab8e334e073626eddb45bcb3a91a3f7
5 files changed