summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Clay <matt@mystile.com>2017-07-06 16:56:20 -0700
committerMatt Clay <matt@mystile.com>2017-07-06 17:55:51 -0700
commita94156227d25a64f458517587f104ce41b72241b (patch)
tree267d0f422c772a227d40fa2d9290162c5ba13f30
parent9fc6f8547323c6b5fc1546cd1c1c7e98a4e6eb31 (diff)
downloadansible-a94156227d25a64f458517587f104ce41b72241b.tar.gz
Improve error handling for cs tests.
-rw-r--r--test/runner/lib/cloud/cs.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/runner/lib/cloud/cs.py b/test/runner/lib/cloud/cs.py
index 0d635fda7f..5f6950b42c 100644
--- a/test/runner/lib/cloud/cs.py
+++ b/test/runner/lib/cloud/cs.py
@@ -21,6 +21,7 @@ from lib.util import (
from lib.http import (
HttpClient,
+ HttpError,
urlparse,
)
@@ -242,7 +243,10 @@ class CsCloudProvider(CloudProvider):
response = client.get(endpoint)
if response.status_code == 200:
- return response.json()
+ try:
+ return response.json()
+ except HttpError as ex:
+ display.error(ex)
time.sleep(30)