diff --git a/lib/ansible/modules/network/ios/ios_facts.py b/lib/ansible/modules/network/ios/ios_facts.py index 99d8985fb1..37449a2788 100644 --- a/lib/ansible/modules/network/ios/ios_facts.py +++ b/lib/ansible/modules/network/ios/ios_facts.py @@ -184,7 +184,7 @@ class Default(FactsBase): self.facts['hostname'] = self.parse_hostname(data) def parse_version(self, data): - match = re.search(r'Version (\S+),', data) + match = re.search(r'Version (\S+?)(?:,\s|\s)', data) if match: return match.group(1)