1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-06 13:18:07 +03:00
samba-mirror/python/samba/netcmd
Douglas Bagnall 742fc4d841 samba-tool: avoid mutable Command class values
These values are shared across all instances of the class,
which makes no difference in samba-tool itself, because there
is one instance per process. But in tests we can have many
Command classes at once (due to runcmd()), and if any of them
happened to append to takes_args or takes_options rather than
replacing it, well, the effect would be subtle.

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2024-02-29 01:31:31 +00:00
..
domain samba-tool domain level: avoid using assert 2024-02-29 01:31:31 +00:00
user samba-tool user getpassword: Also return the time a GMSA password is valid until 2024-02-29 01:31:31 +00:00
__init__.py samba-tool: avoid mutable Command class values 2024-02-29 01:31:31 +00:00
common.py python: pep257: docstring should use double quotes 2023-12-15 02:54:34 +00:00
computer.py netcmd: fix typo in groups and computer commands 2023-11-22 23:35:33 +00:00
contact.py python2 reduction: Merge remaining compat code into common 2020-10-02 14:49:36 +00:00
dbcheck.py python: netcmd: SUPPRESS_HELP constant has no effect here 2023-10-24 23:31:29 +00:00
delegation.py netcmd: delegation: don't use assert but raise CommandError 2024-02-16 02:41:36 +00:00
dns.py python:samba:netcmd: Fix code spelling 2023-06-23 13:44:31 +00:00
drs.py python: pep257: docstring should use double quotes 2023-12-15 02:54:34 +00:00
dsacl.py samba-tool: rewrite dsacl.py to use the new sd_utils helpers 2023-03-22 15:57:15 +00:00
encoders.py netcmd: bugfix: json encoder failed to call super method 2024-02-16 02:41:36 +00:00
forest.py PEP8: fix E302: expected 2 blank lines, found 1 2018-08-24 07:49:29 +02:00
fsmo.py samba-tool: add 'import samba.drs_utils' to fsmo.py 2019-05-30 08:27:24 +00:00
gpcommon.py python: pep257: docstring should use double quotes 2023-12-15 02:54:34 +00:00
gpo.py python: use python3 style super statements 2023-12-15 02:54:34 +00:00
group.py netcmd: fix typo in groups and computer commands 2023-11-22 23:35:33 +00:00
ldapcmp.py ldapcmp: also ignore operatingSystem similar to operatingSystemVersion 2023-07-19 03:31:30 +00:00
main.py netcmd: support hyphens in top-level commands and convert to underscore 2024-02-16 02:41:36 +00:00
nettime.py python/samba: Fix py2/3 relative module import issue 2018-09-03 03:22:20 +02:00
ntacl.py python: Remove unused parameter ‘netlogon’ 2023-12-14 03:31:37 +00:00
ou.py python:samba:netcmd: Fix code spelling 2023-06-23 13:44:31 +00:00
processes.py samba-tool processes: Remove unused loop 2022-05-10 05:19:34 +00:00
pso.py samba-tool pso uses common timestamp functions 2020-12-09 16:00:39 +00:00
rodc.py python: pep257: docstring should use double quotes 2023-12-15 02:54:34 +00:00
schema.py python:samba:netcmd: Fix code spelling 2023-06-23 13:44:31 +00:00
shell.py netcmd: add shell command 2023-12-15 03:51:55 +00:00
sites.py python: netcmd: make use of HostOptions for claims and sites commands 2023-10-24 23:31:29 +00:00
spn.py samba-tool: Check specified domain and realm against our own 2022-03-28 03:11:51 +00:00
testparm.py samba-tool: allow testparm to dump global section only 2022-08-06 00:45:35 +00:00
validators.py python: move Validator base class and ValidationError to getopt 2023-10-24 23:31:29 +00:00
visualize.py python:samba:netcmd: Fix code spelling 2023-06-23 13:44:31 +00:00