Make sure locustfile.py is a file
@@ -76,6 +76,7 @@ func (o *Options) initializeModel() {
o.generationModel.LocustfileInput.Validator = &form.File{
Required: "Required",
Missing: "File does not exist",
+ RegularFile: "Must be a file, not a directory",
}
o.generationModel.IngressURLInput = out.FormField{
