Miscellaneous ansible-test updates. (#27937)

* Add keep alives to ansible-test ssh delegation.
* Improve ansible-test JSON parsing error messages.
* Increase ansible-test delegation sleep and retry.
* Update ansible-test to recognize .psm1 files.
This commit is contained in:
Matt Clay 2017-08-08 22:55:17 -07:00 committed by GitHub
parent 875c8e4f3e
commit a40cb5a47f
4 changed files with 24 additions and 9 deletions

View file

@ -181,7 +181,7 @@ class AnsibleCoreCI(object):
raise self._create_http_error(response)
def get(self, tries=2, sleep=10, always_raise_on=None):
def get(self, tries=3, sleep=15, always_raise_on=None):
"""
Get instance connection information.
:type tries: int
@ -290,8 +290,8 @@ class AnsibleCoreCI(object):
'Content-Type': 'application/json',
}
tries = 2
sleep = 10
tries = 3
sleep = 15
while True:
tries -= 1