Skip to content

Commit 4b5975c

Browse files
committed
Fixed issue #9
Dict sort problem using python3 and parameter "--entries all"
1 parent 308dca7 commit 4b5975c

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ the RTT-MIB was installed on the system.
2828
* v1.1.0 (2017-06-28)
2929
* Added support for rtt-type jitter with MOS and ICPIF thresholds and extensive perf data
3030
* Removed sla tag suffix in perf data when checking only one entry
31+
* v1.1.1 (2017-11-20)
32+
* Fixed bug regarding dict sorting when using python3 icw parameter "--entries all"
3133

3234

3335
## Installation

check_cisco_ip_sla.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from easysnmp.exceptions import *
2020

2121
__author__ = "Maarten Hoogveld"
22-
__version__ = "1.1.0"
22+
__version__ = "1.1.1"
2323
__email__ = "[email protected]"
2424
__licence__ = "GPL-3.0"
2525
__status__ = "Production"
@@ -838,7 +838,7 @@ def check(self):
838838
"""
839839
messages = []
840840
if self.options.entries == "all":
841-
requested_entries = self.rtt_dict.keys()
841+
requested_entries = list(self.rtt_dict.keys())
842842
else:
843843
requested_entries = self.options.entries.replace(" ", "").split(",")
844844
requested_entries.sort(key=int)
@@ -925,6 +925,7 @@ def check(self):
925925
)
926926
)
927927

928+
928929
if __name__ == "__main__":
929930
checker = CiscoIpSlaChecker()
930931
result = checker.run()

0 commit comments

Comments
 (0)