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

Interface number - Fixes #382 #424

Closed
wants to merge 7 commits into from
Closed

Interface number - Fixes #382 #424

wants to merge 7 commits into from

Conversation

Outek
Copy link
Contributor

@Outek Outek commented Oct 22, 2019

Pull Request (PR) description

Fixed Network Adapter renaming

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.

This change is Reviewable

@codecov-io
Copy link

codecov-io commented Oct 22, 2019

Codecov Report

Merging #424 into dev will not change coverage.
The diff coverage is 85%.

Impacted file tree graph

@@         Coverage Diff         @@
##            dev   #424   +/-   ##
===================================
  Coverage    95%    95%           
===================================
  Files        28     28           
  Lines      2281   2281           
===================================
  Hits       2178   2178           
  Misses      103    103

@PlagueHO PlagueHO self-assigned this Oct 22, 2019
@PlagueHO PlagueHO self-requested a review October 22, 2019 19:47
@PlagueHO PlagueHO added the needs review The pull request needs a code review. label Oct 22, 2019
@PlagueHO PlagueHO changed the title Interface number Interface number - Fixes #382 Oct 23, 2019
@PlagueHO
Copy link
Member

It looks like this tests are failing @Outek

@Outek
Copy link
Contributor Author

Outek commented Oct 23, 2019

Yes i know @PlagueHO , if i run the unit tests locally everything is green...

@PlagueHO
Copy link
Member

HI @Outek - I'll try and get some time to have a look and see if I can figure out what is going on. Going to be really short on time for a little bit unfortunately as I have to sit a couple of exams shortly.

@PlagueHO
Copy link
Member

PlagueHO commented Nov 6, 2019

Hi @Outek - can you rebase this onto the latest upstream Dev commit? It should fix the style issues. I'll then take a look at the other test failures.

Copy link
Member

@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.

Reviewed 1 of 2 files at r1, 3 of 4 files at r2, 1 of 1 files at r3.
Reviewable status: all files reviewed, 3 unresolved discussions (waiting on @Outek)


Modules/NetworkingDsc.Common/NetworkingDsc.Common.psm1, line 607 at r3 (raw file):

    
                        # Return a null so that ErrorAction SilentlyContinue works correctly
                        $IgnoreMultipleMatchingAdapters = $true

$IgnoreMultipleMatchingAdapters is a [Switch] type, not a boolean. So you can't assign a boolean to it.

Instead, you can:

$IgnoreMultipleMatchingAdapters = [Switch]::Present

Modules/NetworkingDsc.Common/NetworkingDsc.Common.psm1, line 609 at r3 (raw file):

                        $IgnoreMultipleMatchingAdapters = $true
                    }
                    else {

The { should be on the next line.


Modules/NetworkingDsc.Common/NetworkingDsc.Common.psm1, line 610 at r3 (raw file):

                    }
                    else {
                        $IgnoreMultipleMatchingAdapters = $_.IgnoreMultipleMatchingAdapters

I'm not sure what this line is doing? Is it needed?

Copy link
Contributor Author

@Outek Outek 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: 4 of 5 files reviewed, 3 unresolved discussions (waiting on @PlagueHO)


Modules/NetworkingDsc.Common/NetworkingDsc.Common.psm1, line 607 at r3 (raw file):

Previously, PlagueHO (Daniel Scott-Raynsford) wrote…

$IgnoreMultipleMatchingAdapters is a [Switch] type, not a boolean. So you can't assign a boolean to it.

Instead, you can:

$IgnoreMultipleMatchingAdapters = [Switch]::Present

Done.


Modules/NetworkingDsc.Common/NetworkingDsc.Common.psm1, line 609 at r3 (raw file):

Previously, PlagueHO (Daniel Scott-Raynsford) wrote…

The { should be on the next line.

Done.


Modules/NetworkingDsc.Common/NetworkingDsc.Common.psm1, line 610 at r3 (raw file):

Previously, PlagueHO (Daniel Scott-Raynsford) wrote…

I'm not sure what this line is doing? Is it needed?

Done.

@PlagueHO
Copy link
Member

PlagueHO commented Nov 7, 2019

Sorry @Outek - looks like I missed this repo when we were correcting the hashtable format. So I'm going to submit a PR to fix that.

@PlagueHO
Copy link
Member

Hi @Outek - I've fixed the issues with the Hashtable format, so you should be able to rebase onto Dev and resolve the conflicts which should fix the CI failures. I'll then review. Sorry about the delay.

@PlagueHO
Copy link
Member

Hi @Outek - are you still keen to complete this?

@PlagueHO PlagueHO added abandoned The pull request has been abandoned. and removed needs review The pull request needs a code review. labels May 2, 2020
@Outek
Copy link
Contributor Author

Outek commented Jun 22, 2020

I think i have to start over, i deleted my Fork.

@PlagueHO PlagueHO changed the base branch from dev to master July 11, 2020 06:28
@PlagueHO PlagueHO closed this Dec 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
abandoned The pull request has been abandoned.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NetAdapterName: InterfaceNumber doesn't seem to be working as it should
3 participants