Open ChristophHannappel opened 4 months ago
I think this need to be changed.
$true
should be removed from this line
Then this code should only run if $PSBoundParameters.ContainsKey('AcceptSelfSignedCertificates')
:
Same here, this code should only run if $PSBoundParameters.ContainsKey('AcceptSelfSignedCertificates')
:
Problem description
If you create a Pullserver and do not set the
AcceptSelfSignedCertificates
Parameter the Set-TargetResource will set it to $trueBut the Test-TargetRessource will set it to $false
Because of that the Test-DscConfiguration command will report the Ressource not in desired state.
Verbose logs
DSC configuration
Suggested solution
Set the Parameter default value to the same value.
Operating system the target node is running
PowerShell version and build the target node is running
xPSDesiredStateConfiguration version