diff options
author | Hugo Valente <82235632+hugovalente-pm@users.noreply.github.com> | 2024-04-22 19:39:28 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-22 19:39:28 +0100 |
commit | 2b1687daf0f71ac97fe5161c1456d690d49a15c1 (patch) | |
tree | 0d19b7b6fdc51f278e04fd95b9cd772eb8238fd2 /src/go/collectors/go.d.plugin/agent/jobmgr/dyncfg.go | |
parent | 873ba5dfdbbaa4d5c451a5431ea4031cab4c4c07 (diff) | |
parent | 7f752b626340f648bd34453efdb39b61371f8241 (diff) |
Merge branch 'master' into hugovalente-pm-patch-1hugovalente-pm-patch-1
Diffstat (limited to 'src/go/collectors/go.d.plugin/agent/jobmgr/dyncfg.go')
-rw-r--r-- | src/go/collectors/go.d.plugin/agent/jobmgr/dyncfg.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/go/collectors/go.d.plugin/agent/jobmgr/dyncfg.go b/src/go/collectors/go.d.plugin/agent/jobmgr/dyncfg.go index b747546386..37a83b7485 100644 --- a/src/go/collectors/go.d.plugin/agent/jobmgr/dyncfg.go +++ b/src/go/collectors/go.d.plugin/agent/jobmgr/dyncfg.go @@ -178,6 +178,14 @@ func (m *Manager) dyncfgConfigTest(fn functions.Function) { return } + if cfg.Vnode() != "" { + if _, ok := m.Vnodes.Lookup(cfg.Vnode()); !ok { + m.Warningf("dyncfg: test: module %s: vnode %s not found", mn, cfg.Vnode()) + m.dyncfgRespf(fn, 400, "The specified vnode '%s' is not registered.", cfg.Vnode()) + return + } + } + cfg.SetModule(mn) cfg.SetName("test") |