diff --git a/nailgun/entities.py b/nailgun/entities.py index 60b64f92..85bcd43f 100644 --- a/nailgun/entities.py +++ b/nailgun/entities.py @@ -4322,7 +4322,7 @@ def path(self, which=None): """ if which in ( 'assign_ansible_roles', - 'list_ansible_roles', + 'ansible_roles', 'disassociate', 'enc', 'errata', diff --git a/tests/test_entities.py b/tests/test_entities.py index 1cff9a42..b61702a8 100644 --- a/tests/test_entities.py +++ b/tests/test_entities.py @@ -325,7 +325,7 @@ def test_id_and_which(self): (entities.Host, 'packages'), (entities.Host, 'puppetclass_ids'), (entities.Host, 'smart_class_parameters'), - (entities.Host, 'list_ansible_roles'), + (entities.Host, 'ansible_roles'), (entities.Host, 'assign_ansible_roles'), (entities.HostGroup, 'clone'), (entities.HostGroup, 'puppetclass_ids'),