Fix wrong err return value in plugin reload status command (#9348)

* Fix wrong return value (discovered when merging to ENT)

* go.mod

* go mod vendor

* Add setup plugin reload hook

* All reloads return something now
This commit is contained in:
Scott Miller
2020-06-30 13:33:30 -05:00
committed by GitHub
parent 10ef01b1bf
commit 0be92206d7
7 changed files with 15 additions and 5 deletions

View File

@@ -261,7 +261,7 @@ func (c *Sys) ReloadPlugin(i *ReloadPluginInput) (string, error) {
// Get the reload id
secret, parseErr := ParseSecret(resp.Body)
if parseErr != nil {
return "", err
return "", parseErr
}
if _, ok := secret.Data["reload_id"]; ok {
return secret.Data["reload_id"].(string), nil