Skip to content
This repository has been archived by the owner on Sep 26, 2021. It is now read-only.

Ensure that for OSes that specify ID_LIKE=debian, the DebianProvisioner is indicated as compatible (for ex: Raspbian) #4884

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions libmachine/provision/debian.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ func (provisioner *DebianProvisioner) String() string {
return "debian"
}

func (provisioner *DebianProvisioner) CompatibleWithHost() bool {
return provisioner.OsReleaseInfo.ID == provisioner.OsReleaseID || provisioner.OsReleaseInfo.IDLike == provisioner.OsReleaseID
}

func (provisioner *DebianProvisioner) Package(name string, action pkgaction.PackageAction) error {
var packageAction string

Expand Down