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

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

Description

@cmchoi2000

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions