CiscoDevNet / Hyperflex-Hypercheck

Perform pro-active self checks on your Hyperflex cluster to ensure stability and resiliency
MIT License
27 stars 18 forks source link

vCenter Reachability check fails with DNS name. #14

Closed sttardy closed 4 years ago

sttardy commented 4 years ago

The "else" section around line 827 is not correct if using a DNS name instead of an IP. The code is evaluating to roughly: "vCenterURL: https://myvcenter.example.com".split(":")[1].replace("https://", "").strip() which returns "https" instead of "https://myvcenter.example.com"

Can fix by changing line: l = line.split(":") to add a space after the : like: l = line.split(": ")

avshukla commented 4 years ago

Thanks! I realized I missed a space after : , updated the script