Bug #9837
closedpower_compute_resources_vms permission is listed twice
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1198731
Description of problem:
To the best of my knowledge, each permission should be uniquely named. Unfortunately, there are two permissions named "power_compute_resources_vms". For example:
>>> from robottelo import entities
>>> entities.Permission(name='power_compute_resources_vms').search()
[
{
u'name': u'power_compute_resources_vms',
u'resource_type': u'ComputeResource',
u'id': 26,
},
{
u'name': u'power_compute_resources_vms',
u'resource_type': None,
u'id': 166,
},
]
Version-Release number of selected component (if applicable):
Tested against Version 1.9.0-develop and Satellite-6.1.0-RHEL-7-20150303.0.
How reproducible:
100%
Steps to Reproduce:
1. Search for a permission named 'power_compute_resources_vms'
Actual results:
Two permissions.
Expected results:
One permission.
Additional info:
Updated by Tomer Brisker almost 10 years ago
Docker plugin registers it's permissions without setting resource_type for them.
One of the permissions, power_compute_resources_vms, also appears in foreman-core with resource_type = "ComputeResource".
Updated by Tomer Brisker almost 10 years ago
- Related to Bug #9338: Cannot create a filter with container permissions added