diff options
author | Ulas Kozat <ulas.kozat@gmail.com> | 2016-07-01 12:21:19 -0700 |
---|---|---|
committer | Ulas Kozat <ulas.kozat@gmail.com> | 2016-07-01 13:23:07 -0700 |
commit | 7aaf46c22b09c76bb096b4e24b99f01ee978fcd9 (patch) | |
tree | 3c51bb1f63682dd04beedbfa026b68d89365d78f /DominoServer.py | |
parent | 507a7981753397fcf69d31888a5fcfb540910b7a (diff) |
return FAILED status when no file is generated for distribution
add tests/logdata/ to make CI happy
Change-Id: I01e0b9feebd5dee2175999e78885abf7124a8410
Signed-off-by: Ulas Kozat <ulas.kozat@gmail.com>
Diffstat (limited to 'DominoServer.py')
-rwxr-xr-x | DominoServer.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/DominoServer.py b/DominoServer.py index 95fbe53..5c5fbd4 100755 --- a/DominoServer.py +++ b/DominoServer.py @@ -317,6 +317,12 @@ class CommunicationHandler: logging.error('Error: %s', sys.exc_info()[0]) pub_r.responseCode = FAILED + # Check if any file is generated for distribution, if not + # return FAILED as responseCode, we should also send description for + # reason + if len(file_paths) == 0: + pub_r.responseCode = FAILED + return pub_r #Query from Domino Client is received |