Skip to content
This repository has been archived by the owner on Jun 14, 2024. It is now read-only.

psdscresources: dsc_ensure changed 'Present' to 'present' (corrective) #211

Open
cmchoi2000 opened this issue Feb 21, 2024 · 1 comment
Open

Comments

@cmchoi2000
Copy link

I upgrade from:
mod 'dsc-psdscresources', '2.12.0-0-2'
mod 'puppetlabs-pwshlib', '0.8.0'
to:
mod 'dsc-psdscresources', '2.12.0-0-9'
mod 'puppetlabs-pwshlib', '1.1.0'

My code:
dsc_service {'config_lanmanworkstation':
dsc_ensure => present,
dsc_name => 'lanmanworkstation',
dsc_dependencies => ['Bowser', 'MRxSmb10', 'MRxSmb20' ,'NSI'],
dsc_state => 'running'
}

There is no error before upgrade.

I am getting correction run:
Dsc_service[config_lanmanworkstation]File:  Line: | Corrective change | Running | running
Dsc_service[config_lanmanworkstation]File:  Line: | Corrective change | Present | present

dsc_ensure changed 'Present' to 'present' (corrective)
Source: /Stage[main]/Profile::Enable_smb1protocol/Dsc_service[config_lanmanworkstation]/dsc_ensure
dsc_state changed 'Running' to 'running' (corrective)
Source: /Stage[main]/Profile::Enable_smb1protocol/Dsc_service[config_lanmanworkstation]/dsc_state

I tried to change:
dsc_state => 'Running'
this resolve one corrective issue.

dsc_ensure => Present,
caused run failed.

This is on Windows Server 2019.
How do I fix this corrective issue?

@Clebam
Copy link

Clebam commented Feb 27, 2024

Hi, it should be fixed by this PR : puppetlabs/ruby-pwsh#291

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants