shared: Add zypper

Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
This commit is contained in:
Thomas Hipp 2019-02-26 13:30:38 +01:00
parent 907dfedc33
commit 016e09c445
No known key found for this signature in database
GPG Key ID: 993408D1137B7D51

View File

@ -254,6 +254,7 @@ func (d *Definition) Validate() error {
"portage",
"yum",
"equo",
"zypper",
}
if !shared.StringInSlice(strings.TrimSpace(d.Packages.Manager), validManagers) {
return fmt.Errorf("packages.manager must be one of %v", validManagers)