mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Skip Ruby tests on exception in pre-req check
This commit is contained in:
parent
abfe8560f8
commit
ff04c162bd
@ -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
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user