mirror of
https://github.com/kemko/nomad.git
synced 2026-01-04 17:35:43 +03:00
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.
1.7 KiB
1.7 KiB