Merge pull request #62 from useblacksmith/default-devdb

backend: default to /dev/vdb when ExposeVolume response is empty
This commit is contained in:
Aditya Maru 2024-12-06 22:42:06 -05:00 committed by GitHub
commit 15e5beff2d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 4 additions and 3 deletions

2
dist/index.js generated vendored

File diff suppressed because one or more lines are too long

2
dist/index.js.map generated vendored

File diff suppressed because one or more lines are too long

View File

@ -440,7 +440,8 @@ async function getBuilderAddr(inputs: context.Inputs, dockerfilePath: string): P
exposeId = stickyDiskResponse.expose_id;
device = stickyDiskResponse.device;
if (device === '') {
throw new Error('No device returned from ExportVolume request');
// TODO(adityamaru): Remove this once all of our VM agents are returning the device in the stickydisk response.
device = '/dev/vdb';
}
clearTimeout(timeoutId);
await maybeFormatBlockDevice(device);