VES sender script improvement 74/7374/1
authorArif Hussain <arif.hussain@xoriant.com>
Wed, 15 Dec 2021 10:18:14 +0000 (15:48 +0530)
committerArif Hussain <arif.hussain@xoriant.com>
Wed, 15 Dec 2021 10:18:14 +0000 (15:48 +0530)
OAM-241

Signed-off-by: Arif Hussain <arif.hussain@xoriant.com>
Change-Id: I849b334462b8f24fd5c8c71d9591db6ef12ea2a7

solution/dev/client-scripts-ves-v7/globalVesEventEmitter.py

index fadd6c6..9f44a5c 100644 (file)
@@ -45,7 +45,7 @@ def sendVesEvent(data):
       # catastrophic error. bail.
       raise SystemExit(e)
         
-    if response.status_code >= 200 and response.status_code < 300:
+    if response.status_code >= 200 and response.status_code <= 500:
       print(response)
     else:
       sys.exit('Reading VES "stndDefined" message template failed.')
@@ -106,5 +106,4 @@ def saveExample(data):
     with open(outputFileName, 'w') as f:
       json.dump(data['body'], f, indent=2, sort_keys=True)
   else:
-    print("Example could not been saved:\n" + json.dump(data, f, indent=2, sort_keys=True)) 
-  
\ No newline at end of file
+    print("Example could not been saved:\n" + json.dump(data, f, indent=2, sort_keys=True))