Fix the platform check in CimDSCParser.cs (#9338)

This commit is contained in:
James Truher [MSFT] 2019-04-18 13:36:58 -07:00 committed by Dongbo Wang
parent 99c3fd1757
commit 4b67cdb9d4

View file

@ -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.