dnaeon / pyinfoblox

Infoblox WAPI module for Python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add Timeout option to the "requests" calls

racsoce opened this issue · comments

Is there a way to add the timeout parameter to change the default value (180) in the request calls?

I had to add this in the get Object to send the timeout parameter to the "requests" get:

def get(self, objref=None, timeout=180, **kwargs):
    """
    Get Infoblox objects

    Returns:
        With objref, one Infoblox object,
        in search form, a list of Infoblox objects

    Raises:
        InfobloxWAPIException

    """
    r = self.session.get(
        self.wapi + (objref if objref is not None else self.objtype),
        params=kwargs, timeout=timeout
    )

Can you submit a PR for getting this one merged?

Thanks!

Sure, Done:
#9

Thanks,