Skip to content

Commit

Permalink
Fix incorrect serializer in Update-Catlet Cmdlet (#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristopherMann authored Nov 4, 2024
1 parent 9268f08 commit 5bdf61f
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
using System.Text.Json;
using Eryph.ClientRuntime;
using Eryph.ComputeClient.Models;
using Eryph.ConfigModel.Json;
using JetBrains.Annotations;
using Operation = Eryph.ComputeClient.Models.Operation;

Expand Down Expand Up @@ -38,10 +39,11 @@ protected override void ProcessRecord()
foreach (var id in Id)
{
var config = DeserializeConfigString(Config);
var configJson = CatletConfigJsonSerializer.SerializeToElement(config);

WaitForOperation(Factory.CreateCatletsClient().Update(
id,
new UpdateCatletRequestBody(JsonSerializer.SerializeToElement(config))
new UpdateCatletRequestBody(configJson)
{
CorrelationId = Guid.NewGuid(),
})
Expand Down

0 comments on commit 5bdf61f

Please sign in to comment.