commit | cbd06170a38ca7782c22f42e81d3d9c78c208cd0 | [log] [tgz] |
---|---|---|
author | Felipe Monteiro <felipe.monteiro@att.com> | Tue Jan 24 13:49:16 2017 -0500 |
committer | Felipe Monteiro <felipe.monteiro@att.com> | Tue Jan 24 13:49:16 2017 -0500 |
tree | 4555c68778ce88954163f95fb54ec19c0b3e11c4 | |
parent | 854710813701b359fd3ba24e6ff2da7bd8c94dfb [diff] |
Add try/except block to rbac_rule_validation. Right now, the tenant_id passed in to the rbac converter is vulnerable to IndexError/AttributeError: rbac_rule_validation decorator assumes that auth_provider.credentials.tenant_id is present in args[0]. Also added __init__.py to tests.api.image.v2. Change-Id: Ie47913c0adb686c2cdb2f7cbf71861a2b6591452