Fixed broken workaround

Note: Fixed in eventlet v0.13 but we can't be sure that
all clients that use python-muranoclient use newest eventlet

Change-Id: I42d3f577270c8330595c1e006e488c6fc4567d12
This commit is contained in:
Serg Melikyan 2013-08-19 12:12:57 +04:00
parent 051eccd103
commit ec501286e9
1 changed files with 13 additions and 0 deletions

View File

@ -117,3 +117,16 @@ def exit(msg=''):
if msg:
print >> sys.stderr, msg
sys.exit(1)
def getsockopt(self, *args, **kwargs):
"""
A function which allows us to monkey patch eventlet's
GreenSocket, adding a required 'getsockopt' method.
TODO: (mclaren) we can remove this once the eventlet fix
(https://bitbucket.org/eventlet/eventlet/commits/609f230)
lands in mainstream packages.
NOTE: Already in 0.13, but we can't be sure that all clients
that use python-muranoclient also use newest eventlet
"""
return self.fd.getsockopt(*args, **kwargs)