Fix inventory parsing so that FQDN can be parsed without throwing ssh
port parsing errors
Fixes problesm introduced by 948d019fef8781b22960859caaa93485a074e339
Adds testcases to defend
Merge pull request #5337 from bob-smith/bugfixFQDNParsing

Fix inventory parsing so that FQDN can be parsed without throwing ssh port error