Support the new "ready" order status

This commit is contained in:
André Cruz 2018-07-03 15:31:14 +01:00
parent d7bf9571d1
commit 936e2b98ee
2 changed files with 3 additions and 2 deletions

View File

@ -431,7 +431,7 @@ func (a *Acme) shouldAttemptValidation(ctx context.Context, cl client.Interface,
}
switch order.Status {
case acme.StatusPending, acme.StatusProcessing, acme.StatusValid:
case acme.StatusPending, acme.StatusProcessing, acme.StatusValid, acme.StatusReady:
// if the order has not failed, attempt authorization
return 0, order, nil
case acme.StatusRevoked, acme.StatusUnknown:

View File

@ -20,6 +20,7 @@ const (
StatusInvalid = "invalid"
StatusRevoked = "revoked"
StatusDeactivated = "deactivated"
StatusReady = "ready"
)
// CRLReasonCode identifies the reason for a certificate revocation.
@ -215,7 +216,7 @@ type Order struct {
URL string
// Status is the status of the order. It will be one of StatusPending,
// StatusProcessing, StatusValid, and StatusInvalid.
// StatusReady, StatusProcessing, StatusValid, and StatusInvalid.
Status string
// Expires is the teimstamp after which the server will consider the order invalid.