]> git.ipfire.org Git - thirdparty/samba.git/commit
pylibs: add string_is_guid() helper.
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Thu, 15 Feb 2024 21:20:24 +0000 (21:20 +0000)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 29 Feb 2024 02:38:06 +0000 (02:38 +0000)
commit0fe263a56d049b62be71ced9d8a78bc0a749c195
treeeb129e2f435de8f3febb666cfa14d4c4c3ff8112
parent7b089e1206a8a8256ad108f5f0e03d3b33f8bf9f
pylibs: add string_is_guid() helper.

In various places we use regular expressions to check for GUID-ness,
though typically we don't match GUIDs with uppercase hex digits when
we really should.

If we centralise the check, we have more chance of getting it right.

Pair-programmed-by: Andrew Bartlett <abartlet@samba.org>
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Thu Feb 29 02:38:07 UTC 2024 on atb-devel-224
python/samba/__init__.py