Skip to content

Commit

Permalink
Fix telemetry error (#1946)
Browse files Browse the repository at this point in the history
  • Loading branch information
bwateratmsft authored May 6, 2020
1 parent 24b2554 commit 27b447d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/commands/containers/browseContainer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { ContainerTreeItem } from "../../tree/containers/ContainerTreeItem";
import { callDockerodeWithErrorHandling } from '../../utils/callDockerode';
import { captureCancelStep } from '../../utils/captureCancelStep';

type BrowseTelemetryProperties = TelemetryProperties & { possiblePorts?: number[], selectedPort?: number };
type BrowseTelemetryProperties = TelemetryProperties & { possiblePorts?: string, selectedPort?: number };

type ConfigureBrowseCancelStep = 'node' | 'port';

Expand Down Expand Up @@ -80,7 +80,7 @@ export async function browseContainer(context: IActionContext, node?: ContainerT
// Exclude ports not mapped to the host...
.filter(port => port.mappings && port.mappings.length > 0);

telemetryProperties.possiblePorts = possiblePorts.map(port => port.containerPort.port);
telemetryProperties.possiblePorts = possiblePorts.map(port => port.containerPort.port).toString();

if (possiblePorts.length === 0) {
/* eslint-disable-next-line @typescript-eslint/no-floating-promises */
Expand Down

0 comments on commit 27b447d

Please sign in to comment.