mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Fix the platform check in CimDSCParser.cs (#9338)
This commit is contained in:
committed by
Dongbo Wang
parent
99c3fd1757
commit
4b67cdb9d4
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user