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

ADReplicationSiteLink: Wrong verbose message when removing sites #518

Closed
johlju opened this issue Oct 15, 2019 · 0 comments · Fixed by #541
Closed

ADReplicationSiteLink: Wrong verbose message when removing sites #518

johlju opened this issue Oct 15, 2019 · 0 comments · Fixed by #541
Labels
bug The issue is a bug. good first issue The issue should be easier to fix and can be taken up by a beginner to learn to contribute on GitHub

Comments

@johlju
Copy link
Member

johlju commented Oct 15, 2019

Details of the scenario you tried and the problem that is occurring

When a site that is part of SitesExcluded is present in the sites that are set, the verbose message that should show the site being removed does not show any site name.

VERBOSE: [DC01]:                            [[ADReplicationSiteLink]Integration_Test] Removing sites  from site link Integration1-Integration2. (ADRSL0004)

Verbose logs showing the problem

VERBOSE: [DC01]: LCM:  [ Start  Set      ]
VERBOSE: [DC01]:                            [DSCEngine] Importing the module
C:\source\ActiveDirectoryDsc\DscResources\MSFT_ADReplicationSiteLink\MSFT_ADReplicationSiteLink.psm1 in force mode.
VERBOSE: [DC01]: LCM:  [ Start  Resource ]  [[ADReplicationSiteLink]Integration_Test]
VERBOSE: [DC01]: LCM:  [ Start  Test     ]  [[ADReplicationSiteLink]Integration_Test]
VERBOSE: [DC01]:                            [[ADReplicationSiteLink]Integration_Test] Importing the module MSFT_ADReplicationSiteLink in force mode.
VERBOSE: [DC01]:                            [[ADReplicationSiteLink]Integration_Test] Excluded Integration3 site found in SitesIncluded. Current SitesIncluded:
Integration3, Integration2, Integration1. (ADRSL0002)
VERBOSE: [DC01]: LCM:  [ End    Test     ]  [[ADReplicationSiteLink]Integration_Test]  in 0.5310 seconds.
VERBOSE: [DC01]: LCM:  [ Start  Set      ]  [[ADReplicationSiteLink]Integration_Test]
VERBOSE: [DC01]:                            [[ADReplicationSiteLink]Integration_Test] Importing the module MSFT_ADReplicationSiteLink in force mode.
VERBOSE: [DC01]:                            [[ADReplicationSiteLink]Integration_Test] Removing sites  from site link Integration1-Integration2. (ADRSL0004)
VERBOSE: [DC01]:                            [[ADReplicationSiteLink]Integration_Test] Performing the operation "Set" on target
"CN=Integration1-Integration2,CN=IP,CN=Inter-Site Transports,CN=Sites,CN=Configuration,DC=contoso,DC=com".
VERBOSE: [DC01]: LCM:  [ End    Set      ]  [[ADReplicationSiteLink]Integration_Test]  in 1.0620 seconds.
VERBOSE: [DC01]: LCM:  [ End    Resource ]  [[ADReplicationSiteLink]Integration_Test]
VERBOSE: [DC01]: LCM:  [ End    Set      ]
VERBOSE: [DC01]: LCM:  [ End    Set      ]    in  2.4060 seconds.

Suggested solution to the issue

The parameter variable name has a typo.

https://github.com/PowerShell/ActiveDirectoryDsc/blob/0643ee581d3de1148cd5ceb68eaab15fa5bcc726/DSCResources/MSFT_ADReplicationSiteLink/MSFT_ADReplicationSiteLink.psm1#L177

Changing this to $SitesExcluded would solve the issue.

The DSC configuration that is used to reproduce the issue (as detailed as possible)

n/a

The operating system the target node is running

n/a

Version and build of PowerShell the target node is running

n/a

Version of the DSC module that was used ('dev' if using current dev branch)

dev

@johlju johlju added bug The issue is a bug. good first issue The issue should be easier to fix and can be taken up by a beginner to learn to contribute on GitHub help wanted The issue is up for grabs for anyone in the community. labels Oct 15, 2019
@X-Guardian X-Guardian added in progress The issue is being actively worked on by someone. and removed help wanted The issue is up for grabs for anyone in the community. labels Jan 11, 2020
johlju pushed a commit that referenced this issue Jan 12, 2020
- ADReplicationSiteLink
  - Fix RemovingSites verbose message (issue #518).
@johlju johlju removed the in progress The issue is being actively worked on by someone. label Jan 12, 2020
X-Guardian added a commit to X-Guardian/ActiveDirectoryDsc that referenced this issue Jan 13, 2020
- ADReplicationSiteLink
  - Fix RemovingSites verbose message (issue dsccommunity#518).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug The issue is a bug. good first issue The issue should be easier to fix and can be taken up by a beginner to learn to contribute on GitHub
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants