Skip to content

Commit

Permalink
Followup to issue #77, create configured database name from toml file
Browse files Browse the repository at this point in the history
  • Loading branch information
sparrc committed Aug 12, 2015
1 parent 53969ae commit 7293a13
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7293a13

Please sign in to comment.