AB#2117 cli: validate config (#170)

* AB#2117 cli: validate config

* update hack/go.mod
This commit is contained in:
Thomas Tendyck 2022-05-23 15:01:39 +02:00 committed by GitHub
parent 45bf9f15fb
commit 2ba3c153de
12 changed files with 312 additions and 58 deletions

View file

@ -9,7 +9,6 @@ import (
"github.com/edgelesssys/constellation/cli/cloud/cloudcmd"
"github.com/edgelesssys/constellation/cli/cloudprovider"
"github.com/edgelesssys/constellation/cli/gcp"
"github.com/edgelesssys/constellation/internal/config"
"github.com/edgelesssys/constellation/internal/constants"
"github.com/edgelesssys/constellation/internal/file"
"github.com/spf13/afero"
@ -68,7 +67,7 @@ func create(cmd *cobra.Command, creator cloudCreator, fileHandler file.Handler,
return err
}
config, err := config.FromFile(fileHandler, flags.configPath)
config, err := readConfig(cmd.OutOrStdout(), fileHandler, flags.configPath, provider)
if err != nil {
return err
}