$httpcode
This commit is contained in:
@@ -181,7 +181,7 @@ abstract class BaseController extends Controller
|
||||
# Return response instead of printing.
|
||||
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
|
||||
# Fetch the headers, not the body content:
|
||||
|
||||
|
||||
# Send request.
|
||||
$result = curl_exec($ch);
|
||||
$httpcode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
|
||||
@@ -189,6 +189,8 @@ abstract class BaseController extends Controller
|
||||
|
||||
curl_close($ch);
|
||||
|
||||
log_message('critical', "***** ***** Provision :: ansibleProvision($httpcode) ".$httpcode);
|
||||
|
||||
if ($httpcode != "204") {
|
||||
return "Login failed! $result";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user