mirror of
https://github.com/empayre/fleet.git
synced 2024-11-06 08:55:24 +00:00
Return license info after app config modified (#1137)
This commit is contained in:
parent
0255638f0b
commit
4f8ad2daa0
@ -85,7 +85,7 @@ func makeGetAppConfigEndpoint(svc fleet.Service) endpoint.Endpoint {
|
||||
HostSettings: &fleet.HostSettings{
|
||||
AdditionalQueries: config.AdditionalQueries,
|
||||
},
|
||||
License: license,
|
||||
License: license,
|
||||
AgentOptions: agentOptions,
|
||||
}
|
||||
return response, nil
|
||||
@ -99,6 +99,10 @@ func makeModifyAppConfigEndpoint(svc fleet.Service) endpoint.Endpoint {
|
||||
if err != nil {
|
||||
return appConfigResponse{Err: err}, nil
|
||||
}
|
||||
license, err := svc.License(ctx)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
response := appConfigResponse{
|
||||
OrgInfo: &fleet.OrgInfo{
|
||||
OrgName: &config.OrgName,
|
||||
@ -123,6 +127,7 @@ func makeModifyAppConfigEndpoint(svc fleet.Service) endpoint.Endpoint {
|
||||
HostExpiryEnabled: &config.HostExpiryEnabled,
|
||||
HostExpiryWindow: &config.HostExpiryWindow,
|
||||
},
|
||||
License: license,
|
||||
AgentOptions: config.AgentOptions,
|
||||
}
|
||||
if response.SMTPSettings.SMTPPassword != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user