Skip to content

Commit

Permalink
test: fix TestLoadConfigFromYaml
Browse files Browse the repository at this point in the history
  • Loading branch information
hbollon committed Oct 25, 2021
1 parent 7330c08 commit 643826c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import (

tfversion "github.com/hashicorp/terraform/version"
"github.com/jessevdk/go-flags"
"github.com/sirupsen/logrus"
log "github.com/sirupsen/logrus"
"gopkg.in/yaml.v2"
)
Expand Down Expand Up @@ -159,7 +158,7 @@ func parseStructFlagsAndEnv(obj interface{}) configFlags {
if flagsErr, ok := err.(*flags.Error); ok && flagsErr.Type == flags.ErrHelp {
os.Exit(0)
} else {
logrus.Fatalf("Failed to parse flags: %s", err)
log.Fatalf("Failed to parse flags: %s", err)
}
}

Expand Down
4 changes: 2 additions & 2 deletions config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,9 @@ func TestLoadConfigFromYaml(t *testing.T) {
User: "terraboard-user",
Password: "terraboard-pass",
Name: "terraboard-db",
SSLMode: "require",
SSLMode: "",
NoSync: true,
SyncInterval: 1,
SyncInterval: 0,
},
AWS: []AWSConfig{
{
Expand Down

0 comments on commit 643826c

Please sign in to comment.