Skip to content

Commit 8255fa3

Browse files
authored
fix: Pass Tenant ID to adhoc checks (#1267)
It seems ad hoc checks have never used the tenant ID. The secrets handling code needs this information in order to be able to retrieve secrets. Signed-off-by: Marcelo E. Magallon <[email protected]>
1 parent 39d80d1 commit 8255fa3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

internal/adhoc/adhoc.go

+1
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,7 @@ func defaultGrpcAdhocChecksClientFactory(conn ClientConn) (sm.AdHocChecksClient,
384384
func (h *Handler) defaultRunnerFactory(ctx context.Context, req *sm.AdHocRequest) (*runner, error) {
385385
check := model.Check{
386386
Check: sm.Check{
387+
TenantId: req.AdHocCheck.TenantId,
387388
Target: req.AdHocCheck.Target,
388389
Timeout: req.AdHocCheck.Timeout,
389390
Settings: req.AdHocCheck.Settings,

0 commit comments

Comments
 (0)