From 7293a13fa6d65ccba47c3e5de01f2355c481e0b8 Mon Sep 17 00:00:00 2001 From: Cameron Sparr Date: Tue, 11 Aug 2015 14:02:04 -0600 Subject: [PATCH] Followup to issue #77, create configured database name from toml file --- agent.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/agent.go b/agent.go index 6540601ea0999..90bc24f8da714 100644 --- a/agent.go +++ b/agent.go @@ -88,6 +88,8 @@ func (a *Agent) LoadOutputs() ([]string, error) { return nil, fmt.Errorf("Undefined but requested output: %s", name) } + _, err = c.Query(client.Query{ + Command: fmt.Sprintf("CREATE DATABASE %s", config.Database), output := creator() err := a.Config.ApplyOutput(name, output)