add license info to operator debug command

This commit is contained in:
Drew Bailey
2020-08-31 13:22:23 -04:00
parent 5d61167914
commit 41fa0daae2

View File

@@ -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