Skip to content

Commit

Permalink
Merge pull request #138 from sebastienc/work
Browse files Browse the repository at this point in the history
Quick fix.
  • Loading branch information
sebastienc committed Sep 17, 2018
2 parents 451c4ee + e8b2df0 commit 5bc4289
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion kubernetes/utils/HttpRequest.py
Expand Up @@ -89,7 +89,13 @@ def send(self):

state['status'] = response.status_code
state['reason'] = response.reason
resp_data = response.content.decode()

# There was an issue with "kubectl logs" type requests where returned content is "text/plain" and
# we do have characters of unknown origin.
try:
resp_data = response.content.decode('utf-8')
except UnicodeDecodeError:
resp_data = response.content

if len(resp_data) > 0:
try:
Expand Down
2 changes: 1 addition & 1 deletion version.meta
@@ -1 +1 @@
1.10.0.6
1.10.0.7

0 comments on commit 5bc4289

Please sign in to comment.