1
0
mirror of https://github.com/rancher/os.git synced 2025-09-01 14:48:55 +00:00

Tell the user if the interpreted cloud confg is invalid and then exit

Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
This commit is contained in:
Sven Dowideit
2017-07-17 12:17:41 +10:00
parent 7fb9afe39c
commit cbcdb2628c
4 changed files with 19 additions and 3 deletions

View File

@@ -255,7 +255,7 @@ func validate(c *cli.Context) error {
if err != nil {
log.Fatal(err)
}
validationErrors, err := config.Validate(bytes)
validationErrors, err := config.ValidateBytes(bytes)
if err != nil {
log.Fatal(err)
}