Closed pimguilherme closed 2 years ago
FYI this doesn't seem to happen in the 3.7.0 branch, so i think it's just the process of developing the new version which has this 'intermediate broken' state.. anyway will leave it here for documentation
thanks!
This is apparently due to this change in the st2common/util/schema/init.py
if (
is_attribute_type_array(attribute_type)
and schema_items
and schema_items.get("properties", {})
):
(it's trying to use 'get' on a list, and before it wasn't because it was not getting to that point because the schema didn't have properties on the items)
"permission_types": {
"type": "array",
"description": "A list of permission types to grant",
"uniqueItems": True,
"items": {
"type": "string",
# Note: We permission aditional validation for based on the
# resource type in other place
"enum": PermissionType.get_valid_values(),
},
"default": [],
the change was introduced here dfad436413ffca12daf6139718c1d22f298216b3 so tagging @cognifloyd because I am not sure how to proceed here
Fixed in StackStorm/st2#5685
Hi! It looks like the role loading procedure is broken.. If I try to load this role (using master):
it simply doesnt work!
And there's apparently the same behavior in the tests.. is this something expected?
Thanks!