From 41fa0daae2cd570733bff12e2747c02c3fd1f69d Mon Sep 17 00:00:00 2001 From: Drew Bailey <2614075+drewbailey@users.noreply.github.com> Date: Mon, 31 Aug 2020 13:22:23 -0400 Subject: [PATCH] add license info to operator debug command --- command/operator_debug.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/command/operator_debug.go b/command/operator_debug.go index 5cc0645ce..ef105a0ce 100644 --- a/command/operator_debug.go +++ b/command/operator_debug.go @@ -549,6 +549,9 @@ func (c *OperatorDebugCommand) collectOperator(dir string, client *api.Client) { ah, _, err := client.Operator().AutopilotServerHealth(nil) c.writeJSON(dir, "operator-autopilot-health.json", ah, err) + + lic, _, err := client.Operator().LicenseGet(nil) + c.writeJSON(dir, "license.json", lic, err) } // collectNomad captures the nomad cluster state