This change fixes issue where a device associated to a command gives error due to duplicate keys in the hash. Another issue is when a dynamic parameter -type is set, it does not get the right targetType.
Is there anything particularly tricky?
N/A
How should this be tested?
First run these 2 commands before importing the fix module: Get-JCAssociation -id YOURSYSTEM and a system bound to a command Get-JCAssociation -id YOURSYSTEM -type system. Both commands should return an error
Import-module
Run same commands, validate the results should not have error
Issues
What does this solve?
This change fixes issue where a device associated to a command gives error due to duplicate keys in the hash. Another issue is when a dynamic parameter -type is set, it does not get the right targetType.
Is there anything particularly tricky?
N/A
How should this be tested?
Get-JCAssociation -id YOURSYSTEM
and a system bound to a commandGet-JCAssociation -id YOURSYSTEM -type system
. Both commands should return an error