Skip Ruby tests on exception in pre-req check

This commit is contained in:
Mike Place 2016-09-07 14:32:47 +09:00
parent abfe8560f8
commit ff04c162bd

View File

@ -27,7 +27,10 @@ def check_status():
'''
Check the status of the rubygems source
'''
ret = salt.utils.http.query('https://rubygems.org', status=True)
try:
ret = salt.utils.http.query('https://rubygems.org', status=True)
except Exception:
return False
return ret['status'] == 200