Skip to content

Commit

Permalink
Misc cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
tangrufus committed Nov 3, 2019
1 parent d6eb7d1 commit 3511fcd
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions cmd/db_open.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@ func (c *DBOpenCommand) Run(args []string) int {
if dbCredentialsErr != nil {
c.UI.Error(fmt.Sprintf("Error createing temporary db credentials JSON file: %s", dbCredentialsErr))
}
c.UI.Info(fmt.Sprintf(dbCredentialsJson.Name()))
defer deleteFile(dbCredentialsJson.Name())

// Template playbook files from package to Trellis
Expand All @@ -133,10 +132,8 @@ func (c *DBOpenCommand) Run(args []string) int {

playbookCommand := execCommand("ansible-playbook", playbookPath, "-e", "env="+environment, "-e", "site="+siteName, "-e", "dest="+dbCredentialsJson.Name())
appendEnvironmentVariable(playbookCommand, "ANSIBLE_RETRY_FILES_ENABLED=false")

logCmd(playbookCommand, c.UI, true)
playbookErr := playbookCommand.Run()

if playbookErr != nil {
c.UI.Error(fmt.Sprintf("Error running ansible-playbook: %s", playbookErr))
return 1
Expand Down Expand Up @@ -189,7 +186,7 @@ Arguments:
SITE Name of the site (ie: example.com)
Options:
--app Database client to be used; Supported: tableplus, sequel-pro
--app Database client to be open with; Supported: tableplus, sequel-pro
-h, --help show this help
`

Expand Down

0 comments on commit 3511fcd

Please sign in to comment.