Bug #29065
closedHammer filter create fails if default location is set.
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1792339
Description of problem:
"hammer role create" now assigns "Default Location" by default. It did not do that previously.
Attempting to create a filter for a role fails with error:
Could not create the permission filter:
Location ids You can't assign locations to this resource
How reproducible:
every time
Steps to Reproduce:
[root@dhcp-3-165 ~]# hammer role create --name test
~]# hammer filter create --permissions="view_activation_keys,create_activation_keys,edit_activation_keys,destroy_activation_keys" --role-id=32
Could not create the permission filter:
Location ids You can't assign locations to this resource
[root@dhcp-3-165 ~]# hammer role info --name test
Id: 32
Name: test
Builtin: no
Description:
Locations:
Default Location
[root@dhcp-3-165 ~]# hammer role create --name test2
User role [test2] created.
[root@dhcp-3-165 ~]# hammer role info --name test2
Id: 33
Name: test2
Builtin: no
Description:
Locations:
Default Location
Actual results:
Could not create the permission filter
Expected results:
hammer filter can be created