Open dtshepherd opened 7 years ago
I just updated the ticket above. This only affects the net-plugin
. Normally launched weave
reports a helpful message "error during template execution".
Thanks for the report.
The problem is that call_weave
(called by weave report
) calls check_running
(https://github.com/weaveworks/weave/blob/v2.0.4/weave#L653) in the case of /report
returning an error. The latter function expects the weave container to be running which is not the case for net-plugin
.
Yeah, I figured that out. I commented in the community slack, but I'm working on a PR to make weave
script more aware of the net-plugin
. I know this may overlap with #2938, but maybe I can help iterate the improvements.
What you expected to happen?
weave report
should return helpful error message when invalid format string is passed to-f
option.What happened?
weave report -f '{{ .Router.Target }}'
returned an error message stating "weave container is not present. Have you launched it?". Theweave
container was running as anet-plugin
, so the reason for the error was wrong. The error was caused by an invalid format string.Router.Target
does not exist, it needed to be.Router.Targets
.How to reproduce it?
weave report -f '{{ .Bad.Key }}'
Anything else we need to know?
Nope
Versions:
Logs:
NA
Network:
NA