We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4c9c425 commit 2f55f74Copy full SHA for 2f55f74
packages/dappmanager/src/calls/packageRemove.ts
@@ -47,7 +47,11 @@ export async function packageRemove({
47
let hasRemoved = false;
48
if (fs.existsSync(composePath)) {
49
try {
50
- await dockerComposeDown(composePath, { volumes: deleteVolumes, timeout });
+ await dockerComposeDown(composePath, {
51
+ volumes: deleteVolumes,
52
+ // Ignore timeout is user doesn't want to keep any data
53
+ timeout: deleteVolumes ? undefined : timeout
54
+ });
55
hasRemoved = true; // To mimic an early return
56
} catch (e) {
57
logs.error(`Error on dockerComposeDown of ${dnp.dnpName}`, e);
0 commit comments