mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
plugins: style sweep
This commit is contained in:
@@ -1592,9 +1592,9 @@ class updatedns
|
||||
if ($http_code == 200) {
|
||||
$status = 'Dynamic DNS: (Success) IP Address Updated Successfully!';
|
||||
$successful_update = true;
|
||||
} else if ($http_code == 401) {
|
||||
} elseif ($http_code == 401) {
|
||||
$status = 'Dynamic DNS: (Error) Authentication info not sent or invalid';
|
||||
}else if ($http_code == 404) {
|
||||
} elseif ($http_code == 404) {
|
||||
$status = 'Dynamic DNS: (Error) Resource not found';
|
||||
} else {
|
||||
$status = "Dynamic DNS: (Error) Repsonse not handled check the following: {$data}";
|
||||
|
||||
@@ -227,8 +227,8 @@ function cert_action_validator($opt_cert_id)
|
||||
if ($options["a"] == "automation") {
|
||||
// Check if the cert was successul issued
|
||||
if (!empty((string)$certObj->statusCode) and (string)$certObj->statusCode == '200') {
|
||||
log_error("AcmeClient: ready to run automation for certificate: " . (string)$certObj->name);
|
||||
$restart_certs[] = $certObj;
|
||||
log_error("AcmeClient: ready to run automation for certificate: " . (string)$certObj->name);
|
||||
$restart_certs[] = $certObj;
|
||||
} else {
|
||||
log_error("AcmeClient: failed to run automation, certificate status not OK: " . (string)$certObj->name);
|
||||
return(1);
|
||||
|
||||
Reference in New Issue
Block a user