diff --git a/Changelog.md b/Changelog.md index 12700b8264045cc7b6926a9d86cd30f2ce16365b..63b313f38c796b0c547ef5e114fa51ab72282417 100644 --- a/Changelog.md +++ b/Changelog.md @@ -2,8 +2,11 @@ All notable changes to this project will be documented in this file. +## [0.47] - 2020-06-06 +- bugfix when catching junos rpc exceptions + ## [0.46] - 2020-06-05 -- optimization for redis network latency +- mitigation for redis network latency ## [0.45] - 2020-06-05 - DBOARD3-242: use cached netconf/snmp data when router is unavailable diff --git a/inventory_provider/juniper.py b/inventory_provider/juniper.py index f30cb222866f856eb354ae285692727dd79bba10..013b0afc58aa35bcfe176252a7626fe2a3d8cea2 100644 --- a/inventory_provider/juniper.py +++ b/inventory_provider/juniper.py @@ -115,7 +115,7 @@ def _rpc(hostname, ssh): ssh_private_key_file=ssh['private-key']) try: dev.open() - except [EzErrors.ConnectError, EzErrors.RpcError] as e: + except (EzErrors.ConnectError, EzErrors.RpcError) as e: raise ConnectionError(str(e)) return dev.rpc diff --git a/setup.py b/setup.py index a975d4f998a7526e50b4e1d6c55d0016448bc55e..569005c9ad2c9e37f77ad136edb2121bfaf14df3 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ from setuptools import setup, find_packages setup( name='inventory-provider', - version="0.46", + version="0.47", author='GEANT', author_email='swd@geant.org', description='Dashboard inventory provider',