ZertoPublic / ZertoApiWrapper

PowerShell wrapper for Zerto Virtual Manager API
GNU General Public License v3.0
15 stars 12 forks source link

Add-ZertoPeerSite - Error using hostname #103

Closed NScuola closed 4 years ago

NScuola commented 4 years ago

Expected Behavior

When using the Add-ZertoPeerSite module, I'm attempting to use the -targetHost parameter with a hostname instead of an IP address

Current Behavior

Receiving the following error: Add-ZertoPeerSite: Cannot validate argument on parameter 'targetHost'. Cannot convert value "hostname" to type "System.Net.IPAddress". Error: "An invalid IP address was specified."

Possible Solution

Line 9 appears to look for an IP Address match. This should also look for hostname input.

Steps to Reproduce (for bugs)

Use a hostname for the -targetHost parameter when executing the Add-ZertoPeerSite module.

Context

Had to modify my scripts to use IP addresses only instead of hostnames.

Your Environment

wcarroll commented 4 years ago

Looks to be a parameter validation issue. Will look into it.