action_utils: Fix checking for URL availability

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
Sunil Mohan Adapa 2019-02-09 11:27:18 -08:00 committed by James Valleroy
parent 91f68cc7b5
commit 9d44b09fd4
No known key found for this signature in database
GPG Key ID: 77C0C75E7B650808

View File

@ -351,7 +351,7 @@ def _check_port(port, kind='tcp', listen_address=None):
def check_url(url, kind=None, env=None, check_certificate=True,
extra_options=None, wrapper=None, expected_output=None):
"""Check whether a URL is accessible."""
command = ['curl', '-f', '-w', '%{response_code}', url]
command = ['curl', '--location', '-f', '-w', '%{response_code}', url]
if wrapper:
command.insert(0, wrapper)