Skip to content

Update-xDscResource Command Ignores Next-to-Last Line of Resource File #85

@Rob-S

Description

@Rob-S

The Update-xDscResource command seems to ignore the next-to-last line of the Resource .psm1 file that it's updating. For example, just as a demonstration, change the "*" in the Export-ModuleMember line to an "X", so the line reads "Export-ModuleMember -Function X-TargetResource". If there is a single blank line following that line, the Update-xDscResource command still works fine (although you would expect it to fail). However, if you add a second blank line at the end of the file, it fails as expected. This is when using version 1.13 of xDSCResourceDesigner.

Issue created by request from Johan Ljunggren.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThe issue is a bug.help wantedThe issue is up for grabs for anyone in the community.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions