Avoid panic's when referencing non-existing objects
No idea why wrapping the cmd in a function avoids a panic. Probably something about the gc...
This commit is contained in:
15
examples/graph8d.yaml
Normal file
15
examples/graph8d.yaml
Normal file
@@ -0,0 +1,15 @@
|
||||
---
|
||||
graph: mygraph
|
||||
types:
|
||||
exec:
|
||||
- name: exec1
|
||||
cmd: echo hello from exec1
|
||||
shell: ''
|
||||
timeout: 0
|
||||
watchcmd: sleep 5s
|
||||
watchshell: ''
|
||||
ifcmd: ''
|
||||
ifshell: ''
|
||||
pollint: 0
|
||||
state: present
|
||||
edges: []
|
||||
Reference in New Issue
Block a user