Skip to content

Commit

Permalink
Merge pull request #2026 from AkhtarAmir/fixing-node-os-error
Browse files Browse the repository at this point in the history
fixing-node-os-error
  • Loading branch information
alphadev4 authored Jun 8, 2024
2 parents 0679196 + 615aaac commit 3304547
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion engine.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ var exports = require('./exports.js');
var suppress = require('./postprocess/suppress.js');
var output = require('./postprocess/output.js');
var azureHelper = require('./helpers/azure/auth.js');
var azureStorage = require('@azure/storage-blob');

function runAuth(settings, remediateConfig, callback) {
if (settings.cloud && settings.cloud == 'azure') {
Expand All @@ -16,6 +15,8 @@ function runAuth(settings, remediateConfig, callback) {
}

async function uploadResultsToBlob(resultsObject, storageConnection, blobContainerName ) {
var azureStorage = require('@azure/storage-blob');

try {
const blobServiceClient = azureStorage.BlobServiceClient.fromConnectionString(storageConnection);
const containerClient = blobServiceClient.getContainerClient(blobContainerName);
Expand Down

0 comments on commit 3304547

Please sign in to comment.