update license command output to reflect api changes

This commit is contained in:
Drew Bailey
2020-05-05 10:28:58 -04:00
parent 65f09ed119
commit d5f99a06e2
5 changed files with 19 additions and 37 deletions

View File

@@ -232,19 +232,16 @@ type License struct {
}
type LicenseReply struct {
Valid bool
License *License
Warnings []string
License *License
QueryMeta
}
func (op *Operator) LicensePut(license string, q *WriteOptions) (*LicenseReply, *WriteMeta, error) {
var resp LicenseReply
wm, err := op.c.write("/v1/operator/license", license, &resp, q)
func (op *Operator) LicensePut(license string, q *WriteOptions) (*WriteMeta, error) {
wm, err := op.c.write("/v1/operator/license", license, nil, q)
if err != nil {
return nil, nil, err
return nil, err
}
return &resp, wm, nil
return wm, nil
}
func (op *Operator) LicenseGet(q *QueryOptions) (*LicenseReply, *QueryMeta, error) {