mirror of
https://github.com/HeyPuter/puter.git
synced 2026-05-04 08:30:39 +00:00
remove driver lsmod check
Docker Image CI / build-and-push-image (push) Has been cancelled
Maintain Release Merge PR / update-release-pr (push) Has been cancelled
release-please / release-please (push) Has been cancelled
test / test (18.x) (push) Has been cancelled
test / test (20.x) (push) Has been cancelled
test / test (22.x) (push) Has been cancelled
Docker Image CI / build-and-push-image (push) Has been cancelled
Maintain Release Merge PR / update-release-pr (push) Has been cancelled
release-please / release-please (push) Has been cancelled
test / test (18.x) (push) Has been cancelled
test / test (20.x) (push) Has been cancelled
test / test (22.x) (push) Has been cancelled
This commit is contained in:
committed by
Neal Shah
parent
7b1fb5d9a6
commit
49d4cbc486
@@ -151,17 +151,17 @@ class Drivers {
|
||||
if ( ! service_name ) service_name = iface_name;
|
||||
const key = `${iface_name}:${service_name}`;
|
||||
if ( this.drivers_[key] ) return this.drivers_[key];
|
||||
|
||||
const interfaces = await this.list();
|
||||
if ( ! interfaces[iface_name] ) {
|
||||
throw new Error(`Interface ${iface_name} not found`);
|
||||
}
|
||||
|
||||
|
||||
// const interfaces = await this.list();
|
||||
// if ( ! interfaces[iface_name] ) {
|
||||
// throw new Error(`Interface ${iface_name} not found`);
|
||||
// }
|
||||
|
||||
return this.drivers_[key] = new Driver ({
|
||||
call_backend: new FetchDriverCallBackend({
|
||||
context: this.context,
|
||||
}),
|
||||
iface: interfaces[iface_name],
|
||||
// iface: interfaces[iface_name],
|
||||
iface_name,
|
||||
service_name,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user