SqlAGReplica: Enforce EnpointHostName
even though it is not part of the configuration
#1821
Labels
bug
The issue is a bug.
Problem description
The resource wrongly try to enforce
EndpointHostName
even though it is not part of the configuration. When not passed in the configurationEndpointHostname
will be matched against empty string which will always be wrong.Verbose logs
DSC configuration
Found when converting unit test to Pester 5.
Suggested solution
Evaluate that the the parameter
EndpointHostname
was passed in the configuration.SqlServerDsc/source/DSCResources/DSC_SqlAGReplica/DSC_SqlAGReplica.psm1
Line 730 in d5692e2
SQL Server edition and version
SQL Server PowerShell modules
Operating system
PowerShell version
SqlServerDsc version
The text was updated successfully, but these errors were encountered: