Fix st2client notation.
Previously it was broken, because it didn't correctly convert bytes to
string which means all data would have b"" prefix which would break JSON
and other parsing.
This bug was likely introduced when adding support for Python 3.
@@ -550,7 +550,7 @@ class ActionRunCommandMixin(object):
with open(file_path, 'rb') as fp:
content = fp.read()
- return content
+ return content.decode("utf-8")
def transform_object(value):
# Also support simple key1=val1,key2=val2 syntax
