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

Fix vCenter Reachability check #13

Closed mstefany closed 3 years ago

mstefany commented 4 years ago

Fix vCenter Reachability check if vCenter is registered with HyperFlex using FQDN.

Original script splits the FQDN string "vCenterURL: https://vc.subdomain.domain.tld" on ":" resulting in something like:

[' vCenterURL', ' https', '//vc.subdomain.domain.tld']

which is length 3, not 2, thus the if section is never processed. Then, since the https://vc.subdomain.domain.tld is already split to "https" and "//vc.subdomain.domain.tld", we need to remove only "//" instead of whole "https://".