1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00
samba-mirror/python/samba/gp
Gabriel Nagy 8579340fc5 gpo: Do not get templates list on first run
This is a visual fix and has no impact on functionality apart from
cleaner log messages.

The point of this is to get the list of supported templates in order to
compute a diff between the current applied templates and the updated
list, so we are able to unapply and reapply the policy in case there are
differences.

However this code path is executed on first applies as well, at which
point the root CA is not yet set up. This causes the
`get_supported_templates` call to fail, which is not a hard failure but
still pollutes the logs. In this case it's safe to avoid executing the
command as the policy will be applied regardless.

Signed-off-by: Gabriel Nagy <gabriel.nagy@canonical.com>
Reviewed-by: David Mulder <dmulder@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>

Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Mon Jan 22 16:48:57 UTC 2024 on atb-devel-224
2024-01-22 16:48:57 +00:00
..
util python: pep257: docstring should use double quotes 2023-12-15 02:54:34 +00:00
__init__.py gpupdate: Deprecate libgpo.get_gpo_list 2023-04-28 02:15:36 +00:00
gp_centrify_crontab_ext.py python: Remove unused imports 2023-08-30 02:15:29 +00:00
gp_centrify_sudoers_ext.py python: Remove unused imports 2023-08-30 02:15:29 +00:00
gp_cert_auto_enroll_ext.py gpo: Do not get templates list on first run 2024-01-22 16:48:57 +00:00
gp_chromium_ext.py gp: Don't hide managed/recommended directories 2022-12-21 03:05:46 +00:00
gp_drive_maps_ext.py gp: Remove unused import 2023-12-08 02:28:33 +00:00
gp_ext_loader.py gp: Don’t shadow imports 2023-08-30 02:15:29 +00:00
gp_firefox_ext.py gp: Ensure Firefox policy preforms proper cleanup 2023-07-31 09:58:30 +00:00
gp_firewalld_ext.py gp: Ensure Firewalld preforms proper cleanup 2023-07-31 09:58:30 +00:00
gp_gnome_settings_ext.py gp: Fix resource leaks 2023-08-30 02:15:29 +00:00
gp_msgs_ext.py gp: Fix resource leaks 2023-08-30 02:15:29 +00:00
gp_scripts_ext.py gp: Ensure script user policy performs proper cleanup 2023-07-31 09:58:30 +00:00
gp_sec_ext.py python: pep257: docstring should use double quotes 2023-12-15 02:54:34 +00:00
gp_smb_conf_ext.py python: Remove unused imports 2023-08-30 02:15:29 +00:00
gp_sudoers_ext.py gp: Fix resource leaks 2023-08-30 02:15:29 +00:00
gpclass.py python: pep257: docstring should use double quotes 2023-12-15 02:54:34 +00:00
vgp_access_ext.py python: Remove unused imports 2023-08-30 02:15:29 +00:00
vgp_files_ext.py gp: Cleanup some unused code 2023-07-31 10:55:26 +00:00
vgp_issue_ext.py gp: Fix resource leaks 2023-08-30 02:15:29 +00:00
vgp_motd_ext.py gp: Fix resource leaks 2023-08-30 02:15:29 +00:00
vgp_openssh_ext.py gp: Add missing import 2023-08-30 02:15:29 +00:00
vgp_startup_scripts_ext.py python: Remove unused imports 2023-08-30 02:15:29 +00:00
vgp_sudoers_ext.py python: Remove redundant backslashes 2023-08-30 02:15:29 +00:00
vgp_symlink_ext.py python: Remove unused imports 2023-08-30 02:15:29 +00:00