Skip to content

Commit cb0c4af

Browse files
author
Daniel Gao
committed
Address comment
1 parent e74f40a commit cb0c4af

2 files changed

Lines changed: 118 additions & 167 deletions

File tree

src/azure-cli/azure/cli/command_modules/cosmosdb/_validators.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -611,8 +611,7 @@ def _is_valid_guid(value):
611611
"""Check if a string is a valid GUID."""
612612
import uuid
613613
try:
614-
uuid.UUID(value)
615-
return True
614+
return str(uuid.UUID(value)) == value.lower()
616615
except ValueError:
617616
return False
618617

0 commit comments

Comments
 (0)