Update pkg/cli/server/server.go

Co-authored-by: Jacob Blain Christen <dweomer5@gmail.com>
This commit is contained in:
Darren Shepherd 2020-09-01 10:43:19 -07:00 committed by GitHub
parent 0c29005bb3
commit 7657ed2e13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -266,7 +266,7 @@ func run(app *cli.Context, cfg *cmds.Server) error {
}
agentConfig := cmds.AgentConfig
agentConfig.Debug = app.GlobalBool("bool")
agentConfig.Debug = app.GlobalBool("debug")
agentConfig.DataDir = filepath.Dir(serverConfig.ControlConfig.DataDir)
agentConfig.ServerURL = url
agentConfig.Token = token