shared: Add openSUSE

Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
This commit is contained in:
Thomas Hipp 2019-02-26 13:22:43 +01:00
parent 164decd43f
commit addeb7bc3e
No known key found for this signature in database
GPG Key ID: 993408D1137B7D51

View File

@ -240,6 +240,7 @@ func (d *Definition) Validate() error {
"sabayon-http",
"docker-http",
"oraclelinux-http",
"opensuse-http",
}
if !shared.StringInSlice(strings.TrimSpace(d.Source.Downloader), validDownloaders) {
return fmt.Errorf("source.downloader must be one of %v", validDownloaders)