Fix rule status check

This commit is contained in:
Hemachandar
2026-01-27 13:44:44 +05:30
parent 6514a992a1
commit 0b940591d5
@@ -276,7 +276,7 @@ class Certificates extends Action
]));
// Rule not found (or) not in the expected state
if ($rule->isEmpty() || $rule->getAttribute('status') !== RULE_STATUS_CERTIFICATE_GENERATING) {
if ($rule->isEmpty() || !\in_array($rule->getAttribute('status'), [RULE_STATUS_CERTIFICATE_GENERATING, RULE_STATUS_VERIFIED])) {
Console::warning('Certificate generation for ' . $domain->get() . ' is skipped as the associated rule is either empty or not in the expected state.');
return;
}