From 4eb156b2f5ac49583f581a4ba39a6397f234e399 Mon Sep 17 00:00:00 2001 From: benjdudas <31855206+benjdudas@users.noreply.github.com> Date: Thu, 1 Aug 2019 09:27:27 -0400 Subject: [PATCH] regex match for lowercase Cisco (#59550) --- lib/ansible/plugins/cliconf/ios.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/plugins/cliconf/ios.py b/lib/ansible/plugins/cliconf/ios.py index 6927f03562b..f0b0760e8cb 100644 --- a/lib/ansible/plugins/cliconf/ios.py +++ b/lib/ansible/plugins/cliconf/ios.py @@ -207,7 +207,7 @@ class Cliconf(CliconfBase): if match: device_info['network_os_version'] = match.group(1).strip(',') - model_search_strs = [r'^Cisco (.+) \(revision', r'^[Cc]isco (\S+).+bytes of .*memory'] + model_search_strs = [r'^[Cc]isco (.+) \(revision', r'^[Cc]isco (\S+).+bytes of .*memory'] for item in model_search_strs: match = re.search(item, data, re.M) if match: