command/auth-enable

This commit is contained in:
Mitchell Hashimoto
2015-04-01 17:09:11 -07:00
parent 9751f8c963
commit 1e6bc65763
4 changed files with 154 additions and 1 deletions

View File

@@ -27,7 +27,7 @@ func (c *Sys) EnableAuth(path, authType, desc string) error {
"description": desc,
}
r := c.c.NewRequest("PUT", fmt.Sprintf("/v1/sys/auth/%s", path))
r := c.c.NewRequest("POST", fmt.Sprintf("/v1/sys/auth/%s", path))
if err := r.SetJSONBody(body); err != nil {
return err
}