diff --git a/ldapcherry/attributes.py b/ldapcherry/attributes.py index 5cf9bcc..8b945b5 100644 --- a/ldapcherry/attributes.py +++ b/ldapcherry/attributes.py @@ -54,6 +54,6 @@ """return the list of backends in roles file""" return self.backends - def get_addattributes(self): + def get_attributes(self): """get the list of groups from roles""" - pass + return self.self_attributes diff --git a/tests/test_Attributes.py b/tests/test_Attributes.py index 0c6239a..8814765 100644 --- a/tests/test_Attributes.py +++ b/tests/test_Attributes.py @@ -15,7 +15,7 @@ def testNominal(self): inv = Attributes('./tests/cfg/attributes.yml') - inv.get_attributes + inv.get_attributes() return True def testGetSelfAttributes(self):