Skip to content

Commit

Permalink
fixes #666
Browse files Browse the repository at this point in the history
  • Loading branch information
rosanch committed Dec 12, 2018
1 parent 0b10d1a commit 01f877f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion commands/utils/SourceArchiveUtility.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,15 @@ async function uploadSourceCode(client: ContainerRegistryManagementClient, regis
ext.outputChannel.appendLine(" Creating blob service ");
let blob: BlobService = createBlobServiceWithSas(blobInfo.host, blobInfo.sasToken);
ext.outputChannel.appendLine(" Creating block blob ");
blob.createBlockBlobFromLocalFile(blobInfo.containerName, blobInfo.blobName, tarFilePath, (): void => { });
await new Promise((resolve, reject) => {
blob.createBlockBlobFromLocalFile(blobInfo.containerName, blobInfo.blobName, tarFilePath, (error, result, response): void => {
if (error) {
reject(error);
} else {
resolve({ result, response });
}
});
});
return relative_path;
}

Expand Down

0 comments on commit 01f877f

Please sign in to comment.