forked from jpogran/PuppetDscBuilder
-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the Bug
dsc_timezone resource in dsc-computermanagementdsc (8.5.0-0-1) is defined as Class instead of MOF for dscmeta_resource_implementation.
Using the implementation for Get-DSCResourceImplementation:
https://github.com/puppetlabs/Puppet.Dsc/blob/main/src/Puppet.Dsc/internal/functions/Get-DscResourceImplementation.ps1#L92
# Returns 'Class'
using module 'C:\ProgramData\PuppetLabs\puppet\cache\lib\puppet_x\computermanagementdsc\dsc_resources\ComputerManagementDsc\DSCResources\DSC_TimeZone\DSC_TimeZone.psm1'
Try {
$ErrorActionPreference = 'Stop'
$null = [TimeZone]
'Class'
} Catch {
'MOF'
}
What does [TimeZone] actually return?
using module 'C:\ProgramData\PuppetLabs\puppet\cache\lib\puppet_x\computermanagementdsc\dsc_resources\ComputerManagementDsc\DSCResources\DSC_TimeZone\DSC_TimeZone.psm1'
[TimeZone] | fl *
Output:
# Truncated for brevity
Module : CommonLanguageRuntimeLibrary
Assembly : mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
TypeHandle : System.RuntimeTypeHandle
DeclaringMethod :
BaseType : System.Object
UnderlyingSystemType : System.TimeZone
FullName : System.TimeZone
AssemblyQualifiedName : System.TimeZone, mscorlib, Version=4.0.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089
Namespace : System
StructLayoutAttribute : System.Runtime.InteropServices.StructLayoutAttribute
Name : TimeZone
MemberType : TypeInfo
Additional Context
Add any other context about the problem here.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working