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

Ensure that OSes that use ID_LIKE=coreos, the CoreOSProvisioneer is indicated as compatible. #4792

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/coreos.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ func (provisioner *CoreOSProvisioner) String() string {
return "coreOS"
}

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

func (provisioner *CoreOSProvisioner) SetHostname(hostname string) error {
log.Debugf("SetHostname: %s", hostname)

Expand Down