mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-24 15:56:40 +00:00
Log anonymous volumes
Signed-off-by: Christina Wang <christina@balena.io>
This commit is contained in:
parent
0a9c7282e8
commit
2896444988
@ -32,7 +32,7 @@ export async function getAll(): Promise<Volume[]> {
|
|||||||
volumesList.push(volume);
|
volumesList.push(volume);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
if (err instanceof InternalInconsistencyError) {
|
if (err instanceof InternalInconsistencyError) {
|
||||||
log.debug(`Found unmanaged Volume: ${volumeInfo.Name}`);
|
log.debug(`Found unmanaged or anonymous Volume: ${volumeInfo.Name}`);
|
||||||
} else {
|
} else {
|
||||||
throw err;
|
throw err;
|
||||||
}
|
}
|
||||||
|
@ -95,7 +95,7 @@ describe('compose/volume-manager', () => {
|
|||||||
]);
|
]);
|
||||||
// Check that debug message was logged saying we found a Volume not created by us
|
// Check that debug message was logged saying we found a Volume not created by us
|
||||||
expect(logDebug.lastCall.lastArg).to.equal(
|
expect(logDebug.lastCall.lastArg).to.equal(
|
||||||
'Found unmanaged Volume: decoy',
|
'Found unmanaged or anonymous Volume: decoy',
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
{ volumes: volumeData },
|
{ volumes: volumeData },
|
||||||
|
Loading…
Reference in New Issue
Block a user