command/operator_debug: mkdir before storing agent-host (#8707)
The api calls were reordered, the new order omits the `agent-host.json` result by fetching it before the directory is created.
This commit is contained in:
parent
eadb91e734
commit
97c7f2acea
|
@ -454,6 +454,7 @@ func (c *OperatorDebugCommand) collectAgentHost(path, id string, client *api.Cli
|
|||
}
|
||||
|
||||
path = filepath.Join(path, id)
|
||||
c.mkdir(path)
|
||||
|
||||
c.writeJSON(path, "agent-host.json", host, err)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue