From 43ab5cd7edf9cc98fb5c2534cb718aac0264c949 Mon Sep 17 00:00:00 2001 From: Drew Bailey <2614075+drewbailey@users.noreply.github.com> Date: Tue, 26 May 2020 12:39:39 -0400 Subject: [PATCH] Revert "disable license cli commands" --- api/operator.go | 2 -- command/commands.go | 15 +++++++++++++++ 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/api/operator.go b/api/operator.go index cb9060e87..5d4477b71 100644 --- a/api/operator.go +++ b/api/operator.go @@ -236,7 +236,6 @@ type LicenseReply struct { QueryMeta } -// Note: These api actions are not yet supported func (op *Operator) LicensePut(license string, q *WriteOptions) (*WriteMeta, error) { wm, err := op.c.write("/v1/operator/license", license, nil, q) if err != nil { @@ -245,7 +244,6 @@ func (op *Operator) LicensePut(license string, q *WriteOptions) (*WriteMeta, err return wm, nil } -// Note: These api actions are not yet supported func (op *Operator) LicenseGet(q *QueryOptions) (*LicenseReply, *QueryMeta, error) { var reply LicenseReply qm, err := op.c.query("/v1/operator/license", &reply, q) diff --git a/command/commands.go b/command/commands.go index dbbcec006..922a07e8c 100644 --- a/command/commands.go +++ b/command/commands.go @@ -361,6 +361,21 @@ func Commands(metaPtr *Meta, agentUi cli.Ui) map[string]cli.CommandFactory { Meta: meta, }, nil }, + "license": func() (cli.Command, error) { + return &LicenseCommand{ + Meta: meta, + }, nil + }, + "license get": func() (cli.Command, error) { + return &LicenseGetCommand{ + Meta: meta, + }, nil + }, + "license put": func() (cli.Command, error) { + return &LicensePutCommand{ + Meta: meta, + }, nil + }, "logs": func() (cli.Command, error) { return &AllocLogsCommand{ Meta: meta,