Merge pull request #8792 from hashicorp/debug-cli/add-license

add license info to operator debug command
This commit is contained in:
Drew Bailey
2020-08-31 13:39:40 -04:00
committed by GitHub

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