We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eda00a2 commit a8e10bdCopy full SHA for a8e10bd
src/tools/atlasLocal/delete/deleteDeployment.ts
@@ -16,7 +16,9 @@ export class DeleteDeploymentTool extends AtlasLocalToolBase {
16
client: Client,
17
{ deploymentName }: ToolArgs<typeof this.argsShape>
18
): Promise<CallToolResult> {
19
- const deploymentId = await this.lookupDeploymentId(client, deploymentName);
+ const deploymentId = this.telemetry.isTelemetryEnabled()
20
+ ? await this.lookupDeploymentId(client, deploymentName)
21
+ : undefined;
22
23
// Delete the deployment
24
await client.deleteDeployment(deploymentName);
0 commit comments