Skip to content

Dsc_smbshare - Value type mismatch: dsc_path #278

@ghost

Description

Describe the Bug

When using Dsc_smbshare I get Value type mismatch: dsc_path when the share doesn't exist. If the share already exists it's doesn't error out.

Notice: /Stage[main]/Main/Node[computer1]/File[e:\Integrations]/ensure: created (corrective)
Error: /Stage[main]/Main/Node[computer1]/Dsc_smbshare[Integrations]: Could not evaluate: Provider returned data that does not match the Type Schema for `dsc_smbshare[Integrations]`
 Value type mismatch:
    * dsc_path:  (expects a String value, got Undef)

Expected Behavior

Puppet to create the smb share

Steps to Reproduce

Puppet manifest

    file {
        'e:\Integrations':
            ensure => directory;
    }

    dsc_smbshare {
        'Integrations':
            dsc_ensure => 'Present',
            dsc_name => 'Integrations',
            dsc_path => 'e:\Integrations',
            dsc_description => 'Integrations',
            dsc_fullaccess => ["administrators"],
            dsc_folderenumerationmode => 'AccessBased';
    }

Environment

  • Version 8.3.1
  • Platform Windows 2019

Module versions:
mod 'puppetlabs-powershell', '6.0.0'
mod 'puppetlabs-pwshlib', '1.0.1'
mod 'dsc-computermanagementdsc', '9.0.0-0-6'`

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions