1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-05 20:58:40 +03:00

KCC: use more pythonic construct for get_current_replica

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Douglas Bagnall 2015-03-05 17:26:53 +13:00 committed by Andrew Bartlett
parent aee0a9620d
commit 035a246679

View File

@ -493,10 +493,7 @@ class DirectoryServiceAgent(object):
return text
def get_current_replica(self, nc_dnstr):
if nc_dnstr in self.current_rep_table.keys():
return self.current_rep_table[nc_dnstr]
else:
return None
return self.current_rep_table.get(nc_dnstr)
def is_istg(self):
'''Returns True if dsa is intersite topology generator for it's site'''