open-nomad/client/logmon
Michael Schurter a2e3ea6dc9 logmon: fix reattach configuration
There were multiple bugs here:

1. Reattach unmarshalling always returned an error because you can't
   unmarshal into a nil pointer.
2. The hook data wasn't being saved because it was put on the request
   struct, not the response struct.
3. The plugin configuration should only have reattach *or* a command
   set. Not both.
4. Setting Done=true meant the hook was never re-run on agent restart so
   reattaching was never attempted.
2019-02-21 15:32:18 -08:00
..
logging Recover from any possible io error when invoking Write on FileRotator 2018-12-07 18:22:29 +01:00
proto Nomad 0.9.0-beta1 generated code 2019-01-30 10:49:44 -08:00
client.go executor v2 (#4656) 2018-10-16 16:53:31 -07:00
logmon.go Test recovery 2019-01-07 14:49:41 -08:00
plugin.go logmon: fix reattach configuration 2019-02-21 15:32:18 -08:00
server.go executor v2 (#4656) 2018-10-16 16:53:31 -07:00