Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save smurugap/4c81dfb300e03bd64ede to your computer and use it in GitHub Desktop.
Save smurugap/4c81dfb300e03bd64ede to your computer and use it in GitHub Desktop.
Edit __get__ of APIParamsCall() Class /usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py
The self.function will be the actual neutron client api function
if 'format' in kwargs:
instance.format = kwargs['format']
print self.function
ret = self.function(instance, *args, **kwargs)
instance.format = _format
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment