mirror of
https://github.com/samba-team/samba.git
synced 2025-12-12 12:23:50 +03:00
python: fix mutable default arguments
Signed-off-by: Rob van der Linde <rob@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Joseph Sutton <josephsutton@catalyst.net.nz> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Thu Feb 23 23:33:46 UTC 2023 on atb-devel-224
This commit is contained in:
committed by
Andrew Bartlett
parent
e7c87b1d9b
commit
5cb8805811
@@ -33,7 +33,10 @@ from samba import dsdb
|
||||
from ldb import SCOPE_SUBTREE, SCOPE_ONELEVEL
|
||||
|
||||
|
||||
def get_schema_descriptor(domain_sid, name_map={}):
|
||||
def get_schema_descriptor(domain_sid, name_map=None):
|
||||
if name_map is None:
|
||||
name_map = {}
|
||||
|
||||
sddl = "O:SAG:SAD:AI(OA;;CR;e12b56b6-0a95-11d1-adbb-00c04fd8d5cd;;SA)" \
|
||||
"(OA;;CR;1131f6aa-9c07-11d1-f79f-00c04fc2dcd2;;ED)" \
|
||||
"(OA;;CR;1131f6ab-9c07-11d1-f79f-00c04fc2dcd2;;ED)" \
|
||||
|
||||
Reference in New Issue
Block a user