forked from TrueCloudLab/certificates
Fix authz shadow declarations
This commit is contained in:
parent
effb490d27
commit
e92dfb2516
1 changed files with 5 additions and 5 deletions
|
@ -73,11 +73,11 @@ func newOrder(db nosql.DB, ops OrderOptions) (*order, error) {
|
||||||
|
|
||||||
authzs := make([]string, len(ops.Identifiers))
|
authzs := make([]string, len(ops.Identifiers))
|
||||||
for i, identifier := range ops.Identifiers {
|
for i, identifier := range ops.Identifiers {
|
||||||
authz, err := newAuthz(db, ops.AccountID, identifier)
|
az, err := newAuthz(db, ops.AccountID, identifier)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
authzs[i] = authz.getID()
|
authzs[i] = az.getID()
|
||||||
}
|
}
|
||||||
|
|
||||||
now := clock.Now()
|
now := clock.Now()
|
||||||
|
@ -203,14 +203,14 @@ func (o *order) updateStatus(db nosql.DB) (*order, error) {
|
||||||
StatusPending: 0,
|
StatusPending: 0,
|
||||||
}
|
}
|
||||||
for _, azID := range o.Authorizations {
|
for _, azID := range o.Authorizations {
|
||||||
authz, err := getAuthz(db, azID)
|
az, err := getAuthz(db, azID)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
if authz, err = authz.updateStatus(db); err != nil {
|
if az, err = az.updateStatus(db); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
st := authz.getStatus()
|
st := az.getStatus()
|
||||||
count[st]++
|
count[st]++
|
||||||
}
|
}
|
||||||
switch {
|
switch {
|
||||||
|
|
Loading…
Reference in a new issue