From 4b67cdb9d41189fea229153580a193ab80a3e67a Mon Sep 17 00:00:00 2001 From: "James Truher [MSFT]" Date: Thu, 18 Apr 2019 13:36:58 -0700 Subject: [PATCH] Fix the platform check in `CimDSCParser.cs` (#9338) --- src/System.Management.Automation/DscSupport/CimDSCParser.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/System.Management.Automation/DscSupport/CimDSCParser.cs b/src/System.Management.Automation/DscSupport/CimDSCParser.cs index 8c57b70a38..c1aaaf11c9 100644 --- a/src/System.Management.Automation/DscSupport/CimDSCParser.cs +++ b/src/System.Management.Automation/DscSupport/CimDSCParser.cs @@ -452,7 +452,7 @@ namespace Microsoft.PowerShell.DesiredStateConfiguration uint offset = 0; byte[] bytes = null; - if (Platform.IsLinux) + if (Platform.IsLinux || Platform.IsMacOS) { bytes = System.Text.Encoding.UTF8.GetBytes(classText); } @@ -633,7 +633,7 @@ namespace Microsoft.PowerShell.DesiredStateConfiguration.Internal { s_tracer.WriteLine("Initializing DSC class cache force={0}"); - if (System.Management.Automation.Platform.IsLinux) + if (Platform.IsLinux || Platform.IsMacOS) { // // Load the base schema files.