Open ShawnHardwick opened 1 year ago
hi @ShawnHardwick, thanks for raising this. Is this bug still present in the 9.0.0 release? http://forge.puppet.com/modules/dsc/computermanagementdsc/
Yes it is still an issue as far as I know.
# From 9.0.0-0-0 release of dsc-computermanagementdsc
Puppet::ResourceApi.register_type(
name: 'dsc_timezone',
dscmeta_resource_friendly_name: 'TimeZone',
dscmeta_resource_name: 'DSC_TimeZone',
dscmeta_resource_implementation: 'Class',
dscmeta_module_name: 'ComputerManagementDsc',
dscmeta_module_version: '9.0.0',
docs: 'The DSC TimeZone resource type.
Automatically generated from version 9.0.0',
dsc_meta_resource_implementation
is derived from https://github.com/puppetlabs/Puppet.Dsc/blob/main/src/Puppet.Dsc/internal/functions/Get-DscResourceImplementation.ps1#L92
The crux of the issue is that $null = [TimeZone]
will pull types from the Global Assembly Cache (GAC) which has the TimeZone
namespace defined. I could be wrong, but I would expect this to be a MOF
resource, not a Class
resource.
Describe the Bug
dsc_timezone
resource indsc-computermanagementdsc
(8.5.0-0-1) is defined asClass
instead ofMOF
fordscmeta_resource_implementation
.Using the implementation for
Get-DSCResourceImplementation
: https://github.com/puppetlabs/Puppet.Dsc/blob/main/src/Puppet.Dsc/internal/functions/Get-DscResourceImplementation.ps1#L92What does
[TimeZone]
actually return?Output:
Additional Context
Add any other context about the problem here.