Fixed tests

This commit is contained in:
Ev Kontsevoy 2016-04-09 20:15:28 -07:00
parent 885d755158
commit 4011fb9439
2 changed files with 3 additions and 3 deletions

View file

@ -318,9 +318,6 @@ func applyString(src string, target *string) bool {
// Configure merges command line arguments with what's in a configuration file
// with CLI commands taking precedence
func Configure(clf *CommandLineFlags) (cfg *service.Config, err error) {
// create the default configuration:
cfg = service.MakeDefaultConfig()
// load /etc/teleport.yaml and apply it's values:
fileConf, err := readConfigFile(clf.ConfigFile)
if err != nil {

View file

@ -101,6 +101,9 @@ func run(cmdlineArgs []string, testRun bool) (executedCommand string, appliedCon
utils.FatalError(err)
}
// create the default configuration:
appliedConfig = service.MakeDefaultConfig()
// execute the selected command unless we're running tests
if !testRun {
switch command {