changeset 2298:6f56a43b3bb2

Import config: Add another forgotten flag.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Mon, 18 Feb 2019 12:02:44 +0100
parents c8cc875d271c
children 41218dd386a9
files pkg/models/importbase.go
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/pkg/models/importbase.go	Mon Feb 18 11:57:10 2019 +0100
+++ b/pkg/models/importbase.go	Mon Feb 18 12:02:44 2019 +0100
@@ -197,6 +197,9 @@
 		return errors.New("missing 'url' attribute")
 	}
 	ut.URL = url
+	if insecure := attrs.Bool("insecure"); insecure {
+		ut.Insecure = insecure
+	}
 	if user, found := attrs.Get("user"); found {
 		ut.User = &user
 	}