From 2cdf68d8aadd7ee9922d84f88efef1bd436d6762 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Tue, 7 May 2019 16:52:51 +0100 Subject: [PATCH] accounts: Rename _get_account_from_dn to get_by_dn Signed-off-by: Michael Tremer --- src/backend/accounts.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/backend/accounts.py b/src/backend/accounts.py index 657d765b..65afdef3 100644 --- a/src/backend/accounts.py +++ b/src/backend/accounts.py @@ -85,9 +85,9 @@ class Accounts(Object): def _get_accounts_from_dns(self, dns): for dn in dns: - yield self._get_account_from_dn(dn) + yield self.get_by_dn(dn) - def _get_account_from_dn(self, dn): + def get_by_dn(self, dn): attrs = self.memcache.get("accounts:%s:attrs" % dn) if attrs is None: attrs = self._get_attrs(dn) @@ -225,7 +225,7 @@ class Accounts(Object): self.ldap.add_s(dn, ldap.modlist.addModlist(account)) # Return account - return self._get_account_from_dn(dn) + return self.get_by_dn(dn) # Session stuff -- 2.47.3