diff --git a/CHANGELOG.md b/CHANGELOG.md index db5711a..981177f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,14 @@ +## v1.1.3 - 2022-05-25 + +### Fixed + +- #93 - Bump pyjwt dependency. +- #92 - Update plugin description. +- #91 - Fix for null WLAN SSIDs. + +### Fixed + + ## v1.1.2 - 2022-05-11 ### Added diff --git a/nautobot_chatops_ipfabric/__init__.py b/nautobot_chatops_ipfabric/__init__.py index c272596..45efd8f 100644 --- a/nautobot_chatops_ipfabric/__init__.py +++ b/nautobot_chatops_ipfabric/__init__.py @@ -17,8 +17,8 @@ class IPFabricConfig(PluginConfig): verbose_name = "IPFabric" version = __version__ author = "Network to Code, LLC" - description = "IPFabric." - base_url = "ipfabric.io" + description = "Nautobot Chatops IPFabric" + base_url = "nautobot-chatops-ipfabric" required_settings = [] min_version = "1.0.0" max_version = "1.9999" diff --git a/nautobot_chatops_ipfabric/worker.py b/nautobot_chatops_ipfabric/worker.py index 47dc8b4..266b1f4 100644 --- a/nautobot_chatops_ipfabric/worker.py +++ b/nautobot_chatops_ipfabric/worker.py @@ -689,7 +689,7 @@ def wireless(dispatcher, option=None, ssid=None): """Get wireless information by client or ssid.""" snapshot_id = get_user_snapshot(dispatcher) logger.debug("Getting SSIDs") - ssids = [(ssidi["wlanSsid"].lower()) for ssidi in ipfabric_api.get_wireless_ssids(snapshot_id)] + ssids = ipfabric_api.get_wireless_ssids(snapshot_id) if not ssids: dispatcher.send_blocks( @@ -722,7 +722,7 @@ def wireless(dispatcher, option=None, ssid=None): def get_wireless_ssids(dispatcher, ssid=None, snapshot_id=None): """Get All Wireless SSID Information.""" - ssids = [(ssid_["wlanSsid"].lower()) for ssid_ in ipfabric_api.get_wireless_ssids(snapshot_id)] + ssids = ipfabric_api.get_wireless_ssids(snapshot_id) if not ssids: dispatcher.send_blocks( [ @@ -738,8 +738,6 @@ def get_wireless_ssids(dispatcher, ssid=None, snapshot_id=None): ) return True - ssids = ipfabric_api.get_wireless_ssids(snapshot_id) - dispatcher.send_blocks( [ *dispatcher.command_response_header( @@ -781,6 +779,7 @@ def get_wireless_clients(dispatcher, ssid=None, snapshot_id=None): ssids = [ (f"{ssid_['wlanSsid']}-{ssid_['radioDscr']}", ssid_["wlanSsid"]) for ssid_ in ipfabric_api.get_wireless_ssids(snapshot_id) + if ssid_["wlanSsid"] ] if not ssids: dispatcher.send_blocks( diff --git a/poetry.lock b/poetry.lock index 231e18b..72d561e 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1202,12 +1202,12 @@ social-auth-app-django = ">=5.0.0,<5.1.0" svgwrite = ">=1.4.1,<1.5.0" [package.extras] -all = ["django-auth-ldap (>=4.0.0,<4.1.0)", "django-storages (>=1.12.3,<1.13.0)", "mysqlclient (>=2.1.0,<2.2.0)", "napalm (>=3.3.1,<3.4.0)", "social-auth-core[openidconnect,saml] (>=4.2.0,<4.3.0)"] +all = ["django-auth-ldap (>=4.0.0,<4.1.0)", "django-storages (>=1.12.3,<1.13.0)", "mysqlclient (>=2.1.0,<2.2.0)", "napalm (>=3.3.1,<3.4.0)", "social-auth-core[saml,openidconnect] (>=4.2.0,<4.3.0)"] ldap = ["django-auth-ldap (>=4.0.0,<4.1.0)"] remote_storage = ["django-storages (>=1.12.3,<1.13.0)"] mysql = ["mysqlclient (>=2.1.0,<2.2.0)"] napalm = ["napalm (>=3.3.1,<3.4.0)"] -sso = ["social-auth-core[openidconnect,saml] (>=4.2.0,<4.3.0)"] +sso = ["social-auth-core[saml,openidconnect] (>=4.2.0,<4.3.0)"] [[package]] name = "nautobot-capacity-metrics" @@ -1420,7 +1420,7 @@ python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" [[package]] name = "pyjwt" -version = "2.3.0" +version = "2.4.0" description = "JSON Web Token implementation in Python" category = "main" optional = false @@ -2729,8 +2729,8 @@ pyflakes = [ {file = "pyflakes-2.3.1.tar.gz", hash = "sha256:f5bc8ecabc05bb9d291eb5203d6810b49040f6ff446a756326104746cc00c1db"}, ] pyjwt = [ - {file = "PyJWT-2.3.0-py3-none-any.whl", hash = "sha256:e0c4bb8d9f0af0c7f5b1ec4c5036309617d03d56932877f2f7a0beeb5318322f"}, - {file = "PyJWT-2.3.0.tar.gz", hash = "sha256:b888b4d56f06f6dcd777210c334e69c737be74755d3e5e9ee3fe67dc18a0ee41"}, + {file = "PyJWT-2.4.0-py3-none-any.whl", hash = "sha256:72d1d253f32dbd4f5c88eaf1fdc62f3a19f676ccbadb9dbc5d07e951b2b26daf"}, + {file = "PyJWT-2.4.0.tar.gz", hash = "sha256:d42908208c699b3b973cbeb01a969ba6a96c821eefb1c5bfe4c390c01d67abba"}, ] pylint = [ {file = "pylint-2.13.8-py3-none-any.whl", hash = "sha256:f87e863a0b08f64b5230e7e779bcb75276346995737b2c0dc2793070487b1ff6"}, diff --git a/pyproject.toml b/pyproject.toml index 61c8119..89fbf83 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "nautobot-chatops-ipfabric" -version = "1.1.2" +version = "1.1.3" description = "Nautobot Plugin Chatops IPFabric" authors = ["Network to Code, LLC "]