Skip to content

Commit

Permalink
Path fix for macos (#2413)
Browse files Browse the repository at this point in the history
* path fix

* json

---------

Co-authored-by: ROSHAN SAHU <[email protected]>
  • Loading branch information
sahuroshan and ROSHAN SAHU authored Oct 17, 2024
1 parent 94af99e commit fb1bee4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Microsoft.SqlTools.Migration/MigrationService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -606,12 +606,14 @@ internal async Task HandleEstablishUserMapping(
/// Handle request generate the ARM template.
/// </summary>
internal async Task HandleGetArmTemplateRequest(
string skuRecommendationReportFilePath,
string skuRecommendationReportFileName,
RequestContext<List<string>> requestContext)
{
try
{
ProvisioningScriptServiceProvider provider = new ProvisioningScriptServiceProvider();
string skuRecommendationReportFilePath = Path.Combine(SqlAssessmentConfiguration.ReportsAndLogsRootFolderPath, skuRecommendationReportFileName);
skuRecommendationReportFilePath += ".json";
List<SkuRecommendationResult> recommendations = ExtractSkuRecommendationReportAction.ExtractSkuRecommendationsFromReport(skuRecommendationReportFilePath);
List<SqlArmTemplate> templateList = provider.GenerateProvisioningScript(recommendations);
List<string> armTemplates = new List<string>();
Expand Down

0 comments on commit fb1bee4

Please sign in to comment.