Skip to content

Commit

Permalink
command/operator_debug: new methods from f-nomad-debug-bits
Browse files Browse the repository at this point in the history
  • Loading branch information
langmartin committed Aug 6, 2020
1 parent 3db184a commit 8abc71f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions command/operator_debug.go
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@ func (c *OperatorDebugCommand) collectPeriodic(client *api.Client) {
}

// collectOperator captures some cluster meta information
func (c *DebugCommand) collectOperator(dir string, client *api.Client) {
func (c *OperatorDebugCommand) collectOperator(dir string, client *api.Client) {
rc, err := client.Operator().RaftGetConfiguration(nil)
c.writeJSON(dir, "operator-raft.json", rc, err)

Expand Down Expand Up @@ -690,7 +690,7 @@ func (c *OperatorDebugCommand) writeJSON(dir, file string, data interface{}, err

// writeError writes a JSON error object to capture errors in the debug bundle without
// reporting
func (c *DebugCommand) writeError(dir, file string, err error) error {
func (c *OperatorDebugCommand) writeError(dir, file string, err error) error {
bytes, err := json.Marshal(errorWrapper{Error: err.Error()})
if err != nil {
return err
Expand Down

0 comments on commit 8abc71f

Please sign in to comment.