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