return error from infrastructure from data file function

This commit is contained in:
William Banfield
2022-10-18 15:40:39 -04:00
parent 341cabec0e
commit 810b9c613b

View File

@@ -69,6 +69,9 @@ func NewCLI() *CLI {
return errors.New("'--infrastructure-data' must be set when using the 'digital-ocean' infrastructure-type")
}
ifd, err = e2e.InfrastructureDataFromFile(p)
if err != nil {
return err
}
default:
return fmt.Errorf("unknown infrastructure type '%s'", t)
}