Remove deprecated entries from PKI role output.

Fixes #1452
This commit is contained in:
Jeff Mitchell 2016-05-26 10:32:04 -04:00
parent 81e14262cd
commit ccfa8d0567

View file

@ -271,6 +271,14 @@ func (b *backend) pathRoleRead(
Data: structs.New(role).Map(),
}
if resp.Data == nil {
return nil, fmt.Errorf("error converting role data to response")
}
delete(resp.Data, "lease")
delete(resp.Data, "lease_max")
delete(resp.Data, "allowed_base_domain")
return resp, nil
}