containers / virtcontainers

A Go package for building hardware virtualized container runtimes
Apache License 2.0
139 stars 43 forks source link

filesystem: Fix fetchFile behaviour for devicesFileType #477

Closed sboeuf closed 7 years ago

sboeuf commented 7 years ago

In a previous patch, I have been simplifying the way we were fetching stored information from the filesystem, but I simplified too much, because I forgot the specific case of devicesFileType.

This commit fixes this lack of support by calling into the specific function fetchDeviceFile() in case of devicesFileType as a resource.

sameo commented 7 years ago

LGTM

Approved with PullApprove Approved with PullApprove

jodh-intel commented 7 years ago

lgtm

Approved with PullApprove Approved with PullApprove