solarwinds / PowerOrion

9 stars 2 forks source link

Get-OrionNode can't handle when multiple nodes with same IP address are returned #23

Closed micheal100 closed 7 years ago

micheal100 commented 7 years ago

Get-OrionNode -SwisConnection $swis -IPAddress "127.0.0.1" -Debug DEBUG: The value of OrionServer is 192.168.100.2 DEBUG: The value of IPAddress is 127.0.0.1 DEBUG: The URI is swis://192.168.100.2/Orion/Orion.Nodes/NodeID=13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 [83,18: Get-SwisObject] Input string was not in a correct format. DEBUG: The value of nodeprops is DEBUG: The value of properties is System.Management.Automation.PSCustomObject

micheal100 commented 7 years ago

Fixed Get-OrionNodeID to only return a single nodeid if the same address exists multiple times.