Skip to content

Commit 3fd62d1

Browse files
committed
Cherry-pick cleanup
1 parent a0cbb0e commit 3fd62d1

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

Tasks/DockerV0/container.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,13 @@ connection.open(tl.getInput("dockerHostEndpoint"), registryAuthenticationToken);
3434
var action = tl.getInput("action", true);
3535
var telemetry = {
3636
registryType: registryType,
37-
command: action
37+
command: action !== "Run a Docker command" ? action : tl.getInput("customCommand", true)
3838
};
3939

4040
console.log("##vso[telemetry.publish area=%s;feature=%s]%s",
4141
"TaskEndpointId",
4242
"DockerV0",
4343
JSON.stringify(telemetry));
44-
JSON.stringify(telemetry));
4544
/* tslint:disable:no-var-requires */
4645
require({
4746
"Build an image": "./containerbuild",

Tasks/DockerV1/container.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -55,15 +55,6 @@ console.log("##vso[telemetry.publish area=%s;feature=%s]%s",
5555

5656
var commandImplementation = require("./containercommand");
5757
if (command in dockerCommandMap) {
58-
var telemetry = {
59-
registryType: registryType,
60-
command: command
61-
};
62-
63-
console.log("##vso[telemetry.publish area=%s;feature=%s]%s",
64-
"TaskEndpointId",
65-
"DockerV1",
66-
JSON.stringify(telemetry));
6758
commandImplementation = require(dockerCommandMap[command]);
6859
}
6960

0 commit comments

Comments
 (0)