File tree Expand file tree Collapse file tree 4 files changed +9
-4
lines changed
Expand file tree Collapse file tree 4 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 11# Change Log
22
3+ ## [ 2.0.0] 03 Nov 2021
4+ ### Changed
5+ * Changed underlying consul library from ` python-consul ` which is no longer maintained to ` python-consul2 ` which is maintained.
6+ * Certain Python3 libraries return byte strings. We need to decode them in order to correctly json-ify them.
7+
38## [ 1.0.0] 05 Feb 2021
49
510* Drop Python 2.7 support
Original file line number Diff line number Diff line change @@ -36,9 +36,9 @@ def run(
3636
3737 if from_json and not keys :
3838 if isinstance (res , dict ):
39- res ["Value" ] = self .from_json (res ["Value" ])
39+ res ["Value" ] = self .from_json (res ["Value" ]. decode ( 'utf-8' ) )
4040 if isinstance (res , list ):
4141 for item in res :
42- item ["Value" ] = self .from_json (item ["Value" ])
42+ item ["Value" ] = self .from_json (item ["Value" ]. decode ( 'utf-8' ) )
4343
4444 return (True , [idx , res ])
Original file line number Diff line number Diff line change 22ref : consul
33name : consul
44description : consul
5- version : 1 .0.0
5+ version : 2 .0.0
66python_versions :
77 - " 3"
88author : jfryman
Original file line number Diff line number Diff line change 1- python-consul >= 1 .1.0
1+ python-consul2 >= 0 .1.5
You can’t perform that action at this time.
0 commit comments