2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-01-16 12:47:50 +00:00

Add another invalid UUID

All spaces is yet another bad UUID that has cropped up...
This commit is contained in:
Jarrod Johnson 2017-09-15 11:14:00 -04:00
parent 0db2e1cea6
commit d8216f2472

View File

@ -163,7 +163,9 @@ def enrich_pxe_info(info):
def uuid_is_valid(uuid):
if not uuid:
return False
return uuid.lower() not in ('00000000-0000-0000-0000-000000000000', 'ffffffff-ffff-ffff-ffff-ffffffffffff')
return uuid.lower() not in ('00000000-0000-0000-0000-000000000000',
'ffffffff-ffff-ffff-ffff-ffffffffffff',
'20202020-2020-2020-2020-202020202020')
def send_discovery_datum(info):