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 authored and James Valleroy committed 2019-02-09 19:35:57 -05:00
1 parent 91f68cc7b5
commit 9d44b09fd4
1 file changed
+1 -1
+1 -1
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)