Update deployment code so unicode decoder error is not thrown if the
stdout or stderr contains a non utf-8 characters.
We now simply ignore such characters in the output.
@@ -520,7 +520,7 @@ class ParamikoSSHClient(BaseSSHClient):
# We only decode data at the end because a single chunk could contain
# a part of multi byte UTF-8 character (whole multi bytes character
# could be split over two chunks)
- result.write(result_bytes.decode('utf-8'))
+ result.write(result_bytes.decode('utf-8', errors='ignore'))
return result
def _get_pkey_object(self, key, password=None):
