Skip to content

Commit

Permalink
Convert to serialized dictionaries
Browse files Browse the repository at this point in the history
  • Loading branch information
Forgind committed Aug 28, 2024
1 parent 34cbdb9 commit 0211566
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public override int Execute()
.Select(version => WorkloadManifestUpdater.WorkloadSetPackageVersionToWorkloadSetVersion(featureBand, version.Version.ToString()));
if (_workloadSetOutputFormat?.Equals("json", StringComparison.OrdinalIgnoreCase) == true)
{
Reporter.WriteLine(JsonSerializer.Serialize(versions));
Reporter.WriteLine(JsonSerializer.Serialize(versions.Select(version => version.ToDictionary(_ => "workloadVersion", v => v))));
}
else
{
Expand Down

0 comments on commit 0211566

Please sign in to comment.