From 91bf7e7f1c693ff35c7199dd9f4c618d226d1183 Mon Sep 17 00:00:00 2001 From: Jordan Brown Date: Thu, 21 Jan 2021 12:44:27 -0500 Subject: [PATCH] Properly serializes General:ConfigVersion in setup --- src/Tgstation.Server.Host/Setup/SetupWizard.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Tgstation.Server.Host/Setup/SetupWizard.cs b/src/Tgstation.Server.Host/Setup/SetupWizard.cs index 0f2beb86d4..af806cab3f 100644 --- a/src/Tgstation.Server.Host/Setup/SetupWizard.cs +++ b/src/Tgstation.Server.Host/Setup/SetupWizard.cs @@ -19,6 +19,7 @@ using System.Threading.Tasks; using Tgstation.Server.Host.Configuration; using Tgstation.Server.Host.Core; using Tgstation.Server.Host.Database; +using Tgstation.Server.Host.Extensions.Converters; using Tgstation.Server.Host.IO; using Tgstation.Server.Host.System; using YamlDotNet.Serialization; @@ -841,7 +842,9 @@ namespace Tgstation.Server.Host.Setup { SwarmConfiguration.Section, swarmConfiguration }, }; - var serializer = new SerializerBuilder().Build(); + var serializer = new SerializerBuilder() + .WithTypeConverter(new VersionConverter()) + .Build(); var serializedYaml = serializer.Serialize(map);