Closed mstefany closed 3 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://".
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://".