openmano v0.4.39: logging at vimconnector. Exception generation upon error instead of returning status
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
diff --git a/utils.py b/utils.py
index 8102773..a5a7858 100755
--- a/utils.py
+++ b/utils.py
@@ -167,9 +167,15 @@
def check_valid_uuid(uuid):
id_schema = {"type" : "string", "pattern": "^[a-fA-F0-9]{8}(-[a-fA-F0-9]{4}){3}-[a-fA-F0-9]{12}$"}
+ id_schema2 = {"type" : "string", "pattern": "^[a-fA-F0-9]{32}$"}
try:
js_v(uuid, id_schema)
return True
except js_e.ValidationError:
- return False
+ try:
+ js_v(uuid, id_schema2)
+ return True
+ except js_e.ValidationError:
+ return False
+ return False