Update backwards compat fix from 5913

This commit is contained in:
Jeff Mitchell
2018-12-12 15:36:28 -05:00
parent dbd195f895
commit b701df4757
4 changed files with 12 additions and 1 deletions

View File

@@ -49,6 +49,9 @@ func (c *Sys) ListPlugins(i *ListPluginsInput) (*ListPluginsResponse, error) {
if err != nil && resp == nil {
return nil, err
}
if resp == nil {
return nil, nil
}
defer resp.Body.Close()
// We received an Unsupported Operation response from Vault, indicating