Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert to use DSCResource.Common Module #334

Merged
merged 9 commits into from
May 14, 2020

Conversation

PlagueHO
Copy link
Member

@PlagueHO PlagueHO commented May 13, 2020

Pull Request (PR) description

  • Updated to use the common module DscResource.Common - Fixes Issue #327.
  • Fixed build failures caused by changes in ModuleBuilder module v1.7.0
    by changing CopyDirectories to CopyPaths - Fixes Issue #332.

This Pull Request (PR) fixes the following issues

Task list

  • Added an entry under the Unreleased section of the change log in the CHANGELOG.md.
    Entry should say what was changed, and how that affects users (if applicable).
  • Resource documentation added/updated in README.md in resource folder.
  • Resource parameter descriptions added/updated in schema.mof
    and comment-based help.
  • Comment-based help added/updated.
  • Localization strings added/updated in all localization files as appropriate.
  • Examples appropriately added/updated.
  • Unit tests added/updated. See DSC Resource Testing Guidelines.
  • Integration tests added/updated (where possible). See DSC Resource Testing Guidelines.
  • New/changed code adheres to DSC Resource Style Guidelines and Best Practices.

@johlju - would you mind reviewing when you get time?


This change is Reviewable

Copy link
Member

@johlju johlju left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewed 23 of 23 files at r1.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved


source/DSCResources/DSC_Computer/DSC_Computer.psm1, line 16 at r1 (raw file):

-DefaultUICulture 'en-US'

I haven't tried it myself yet, but a recent change to the function made this the default, so just calling Get-LocalizedData should work. But this is good as-is.


source/Modules/ComputerManagementDsc.Common/ComputerManagementDsc.Common.psm1, line 634 at r1 (raw file):

'Get-RegistryPropertyValue'

This is a one we use in SqlServerDsc too. We should add it to Common eventually. Good as-is. Non-blocking.

@johlju johlju added ready for merge The pull request was approved by the community and is ready to be merged by a maintainer. and removed needs review The pull request needs a code review. labels May 13, 2020
Copy link
Member Author

@PlagueHO PlagueHO left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewable status: 7 of 23 files reviewed, all discussions resolved (waiting on @johlju)


source/DSCResources/DSC_Computer/DSC_Computer.psm1, line 16 at r1 (raw file):

Previously, johlju (Johan Ljunggren) wrote…
-DefaultUICulture 'en-US'

I haven't tried it myself yet, but a recent change to the function made this the default, so just calling Get-LocalizedData should work. But this is good as-is.

I gave it a try without the -DefaultUICulture - unfortunately it looks like there is a bug - it doesn't find the data file:
image.png

I'll submit a fix to DscResource.Common.

@PlagueHO PlagueHO merged commit 49beec3 into dsccommunity:master May 14, 2020
@PlagueHO PlagueHO deleted the Issue-327 branch May 14, 2020 04:37
@johlju
Copy link
Member

johlju commented May 14, 2020

Would be great with a fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready for merge The pull request was approved by the community and is ready to be merged by a maintainer.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Correct Build.YML to Support ModuleBuilder 1.7.0 Convert Module to use DSCResource.Common
2 participants