diff --git a/ipfabric/tools/nist.py b/ipfabric/tools/nist.py index 9392ead..b6a8f55 100644 --- a/ipfabric/tools/nist.py +++ b/ipfabric/tools/nist.py @@ -60,10 +60,8 @@ def check_cve(self, vendor: str, family: str, version: str): elif vendor == 'cisco': if family == 'wlc-air': family = 'wireless_lan_controller_software' - elif family == 'nx-os': - family = family - else: - family.replace('-', '_') + elif family != 'nx-os': + family = family.replace('-', '_') version = (version.replace('(', '.')).replace(')', '.') params['cpeMatchString'] += vendor + ":" + family + ':' + version elif vendor == 'fortinet' and family == 'fortigate':