mirror of
https://github.com/docker/build-push-action.git
synced 2025-05-06 21:49:33 +02:00
backend: default to /dev/vdb when ExposeVolume response is empty
This commit is contained in:
parent
96821d6e49
commit
5ab78173d3
3 changed files with 4 additions and 3 deletions
2
dist/index.js
generated
vendored
2
dist/index.js
generated
vendored
File diff suppressed because one or more lines are too long
2
dist/index.js.map
generated
vendored
2
dist/index.js.map
generated
vendored
File diff suppressed because one or more lines are too long
|
@ -440,7 +440,8 @@ async function getBuilderAddr(inputs: context.Inputs, dockerfilePath: string): P
|
||||||
exposeId = stickyDiskResponse.expose_id;
|
exposeId = stickyDiskResponse.expose_id;
|
||||||
device = stickyDiskResponse.device;
|
device = stickyDiskResponse.device;
|
||||||
if (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);
|
clearTimeout(timeoutId);
|
||||||
await maybeFormatBlockDevice(device);
|
await maybeFormatBlockDevice(device);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue