This works around http://tracker.ceph.com/issues/8313
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
Paramiko run support
"""
from cStringIO import StringIO
+from paramiko import ChannelFile
import gevent
import gevent.event
"""
Interface to older xreadlines api.
"""
+ # Work-around for http://tracker.ceph.com/issues/8313
+ if isinstance(f, ChannelFile):
+ f._flags += ChannelFile.FLAG_BINARY
+
# i can't seem to get fudge to fake an iterable, so using this old
# api for now
for line in f.xreadlines():