1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
samba-mirror/python/samba/netcmd
Rob van der Linde 3c022f444a python: fix json encoder should handle Exception
This happens if --json is used and a CommandError is raised, so will affect other commands too where --json is used.

This happens in the print_json_status method.

Signed-off-by: Rob van der Linde <rob@catalyst.net.nz>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2024-03-20 03:49:35 +00:00
..
domain python: pep8: fix import sorting after move 2024-03-20 03:49:35 +00:00
service_account python: pep8: fix import sorting after move 2024-03-20 03:49:35 +00:00
user python: pep8: fix import sorting after move 2024-03-20 03:49:35 +00:00
__init__.py samba-tool: tidy up uncaught insufficient rights LdbError 2024-03-04 02:16:33 +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 python: fix json encoder should handle Exception 2024-03-20 03:49:35 +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: gmsa: base cli commands for group managed service accounts 2024-03-01 04:45: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 python: pep8: fix import sorting after move 2024-03-20 03:49:35 +00:00
sites.py python: pep8: fix import sorting after move 2024-03-20 03:49:35 +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