Skip to content
This repository has been archived by the owner on Dec 13, 2024. It is now read-only.

Commit

Permalink
Add abbreviation for Cisco Unified CM (SME)
Browse files Browse the repository at this point in the history
  • Loading branch information
ra1nb0rn committed Feb 29, 2024
1 parent ecae0f0 commit 5d891f1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cpe_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,13 @@ def _get_alternative_queries(init_queries):
alt_query = query.replace('omsa', 'openmanage server administrator')
alt_queries_mapping[query].append(alt_query)

# check for Cisco 'CM' and 'SME' abbreviations
if 'cisco' in query and (query.startswith('cm ') or query.endswith(' cm') or ' cm ' in query):
alt_query = query.replace('cm', 'communications manager')
if 'sm' in query:
alt_query = alt_query.replace('sm', 'session management')
alt_queries_mapping[query].append(alt_query)

# fix bootstrap CPE naming
if 'bootstrap' in query and 'getbootstrap' not in query:
alt_queries_mapping[query].append(query + ' getbootstrap')
Expand Down

0 comments on commit 5d891f1

Please sign in to comment.