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

DiskAccessPath Add Disk Subsystem Refresh before set - Fixes #121 #209

Merged
merged 2 commits into from
Jul 13, 2019

Conversation

PlagueHO
Copy link
Member

@PlagueHO PlagueHO commented Jul 13, 2019

Pull Request (PR) description

  • DiskAccessPath:
    • Added function to force refresh of disk subsystem at the start of
      Set-TargetResource to prevent errors occuring when the disk access
      path is already assigned - See Issue 121

This PR also supercedes #152, #126

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 the 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 this when you get a chance?


This change is Reviewable

@PlagueHO PlagueHO added the help wanted The issue is up for grabs for anyone in the community. label Jul 13, 2019
@codecov-io
Copy link

codecov-io commented Jul 13, 2019

Codecov Report

Merging #209 into dev will increase coverage by <1%.
The diff coverage is 100%.

Impacted file tree graph

@@         Coverage Diff         @@
##           dev   #209    +/-   ##
===================================
+ Coverage   95%    95%   +<1%     
===================================
  Files        7      7            
  Lines      958    978    +20     
===================================
+ Hits       917    937    +20     
  Misses      41     41

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.

Reviewed 5 of 5 files at r1.
Reviewable status: all files reviewed, 3 unresolved discussions (waiting on @PlagueHO)


DSCResources/MSFT_DiskAccessPath/MSFT_DiskAccessPath.psm1, line 761 at r1 (raw file):

<#
    .SYNOPSIS
    Check access path is found in PSDrives.

The text should be indented one more step. Throughout.


DSCResources/MSFT_DiskAccessPath/MSFT_DiskAccessPath.psm1, line 771 at r1 (raw file):

wihtout

typo


DSCResources/MSFT_DiskAccessPath/MSFT_DiskAccessPath.psm1, line 810 at r1 (raw file):

$accessPathDrive

Maybe add a verbose message saying if the access path was found or not? 🤔

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.

Reviewable status: all files reviewed, 5 unresolved discussions (waiting on @PlagueHO)


DSCResources/MSFT_DiskAccessPath/MSFT_DiskAccessPath.psm1, line 797 at r1 (raw file):

$localizedData

$script:localizedData


DSCResources/MSFT_DiskAccessPath/MSFT_DiskAccessPath.psm1, line 806 at r1 (raw file):

$localizedData

$script:localizedData

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.

Thanks @johlju - should be good to go!

Reviewable status: 2 of 9 files reviewed, 4 unresolved discussions (waiting on @johlju)


DSCResources/MSFT_DiskAccessPath/MSFT_DiskAccessPath.psm1, line 761 at r1 (raw file):

Previously, johlju (Johan Ljunggren) wrote…

The text should be indented one more step. Throughout.

Done. And also in all the other files 😁


DSCResources/MSFT_DiskAccessPath/MSFT_DiskAccessPath.psm1, line 771 at r1 (raw file):

Previously, johlju (Johan Ljunggren) wrote…
wihtout

typo

Done.


DSCResources/MSFT_DiskAccessPath/MSFT_DiskAccessPath.psm1, line 797 at r1 (raw file):

Previously, johlju (Johan Ljunggren) wrote…
$localizedData

$script:localizedData

Done.


DSCResources/MSFT_DiskAccessPath/MSFT_DiskAccessPath.psm1, line 806 at r1 (raw file):

Previously, johlju (Johan Ljunggren) wrote…
$localizedData

$script:localizedData

Done.

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 7 of 7 files at r2.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved

@PlagueHO
Copy link
Member Author

Thanks @johlju !!!

@PlagueHO PlagueHO merged commit d66d568 into dsccommunity:dev Jul 13, 2019
@PlagueHO PlagueHO deleted the Issue-121 branch July 13, 2019 08:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted The issue is up for grabs for anyone in the community.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

xDiskAccessPath fails test for disk and accesspath after disk format and folder creation.
3 participants