parent
81e14262cd
commit
ccfa8d0567
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue