You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (Compare-Object-ReferenceObject $expected-DifferenceObject $actual) {
When no previous Access Policy exists on the server, the comparison performed on line 188 returns the below error. This causes the test phase of DSC to fail and error out. Compare-Object : Cannot bind argument to parameter 'DifferenceObject' because it is null.
This is due to the $targetResource created on 177 having null fields in it when it's created on lines 72-83. On line 70 when Get-BrokerAccessPolicyRule returns no results due to none being on the server previously the $targetResource hash table has $null values for various properties and causes the resulting comparison above to fail.
The text was updated successfully, but these errors were encountered:
XenDesktop7/DSCResources/VE_XD7AccessPolicy/VE_XD7AccessPolicy.psm1
Line 188 in 5fc439c
When no previous Access Policy exists on the server, the comparison performed on line 188 returns the below error. This causes the test phase of DSC to fail and error out.
Compare-Object : Cannot bind argument to parameter 'DifferenceObject' because it is null.
This is due to the $targetResource created on 177 having null fields in it when it's created on lines 72-83. On line 70 when Get-BrokerAccessPolicyRule returns no results due to none being on the server previously the $targetResource hash table has $null values for various properties and causes the resulting comparison above to fail.
The text was updated successfully, but these errors were encountered: