mirror of
https://github.com/gravitational/teleport
synced 2024-10-23 02:32:39 +00:00
Fixed tests
This commit is contained in:
parent
885d755158
commit
4011fb9439
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue