From c5525ed6957c5bc9ccd9f548d921b8296455a31d Mon Sep 17 00:00:00 2001 From: Samuel Bible Date: Thu, 19 Jan 2023 01:51:50 -0600 Subject: [PATCH] Change path to point to proper endpoint (#881) --- nailgun/entities.py | 2 +- tests/test_entities.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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'),