mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
tests/auth_log: Correctly check for GUID
Pattern.match() only checks the starting portion of the string. Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
ffda69f2d9
commit
1c17d56cc5
@ -154,4 +154,4 @@ class AuthLogTestBase(samba.tests.TestCase):
|
||||
# Is the supplied GUID string correctly formatted
|
||||
#
|
||||
def is_guid(self, guid):
|
||||
return self.GUID_RE.match(guid)
|
||||
return self.GUID_RE.fullmatch(guid)
|
||||
|
Loading…
x
Reference in New Issue
Block a user