@@ -458,8 +458,8 @@ class Context(object):
458458 :param retires: Number of retries for each HTTP connection (optional, the default is 0).
459459 NOTE THAT THIS MAY INCREASE THE NUMBER OF ROUND TRIP CONNECTIONS TO THE SPLUNK SERVER.
460460 :type retries: ``int``
461- :param retryBackoff : How long to wait between connection attempts if `retries` > 0 (optional, defaults to 10s).
462- :type retryBackoff : ``int`` (in seconds)
461+ :param retryDelay : How long to wait between connection attempts if `retries` > 0 (optional, defaults to 10s).
462+ :type retryDelay : ``int`` (in seconds)
463463 :param handler: The HTTP request handler (optional).
464464 :returns: A ``Context`` instance.
465465
@@ -478,7 +478,7 @@ class Context(object):
478478 def __init__ (self , handler = None , ** kwargs ):
479479 self .http = HttpLib (handler , kwargs .get ("verify" , False ), key_file = kwargs .get ("key_file" ),
480480 cert_file = kwargs .get ("cert_file" ), context = kwargs .get ("context" ), # Default to False for backward compat
481- retries = kwargs .get ("retries" , 0 ), retryBackoff = kwargs .get ("retryBackoff " , 10 ))
481+ retries = kwargs .get ("retries" , 0 ), retryDelay = kwargs .get ("retryDelay " , 10 ))
482482 self .token = kwargs .get ("token" , _NoAuthenticationToken )
483483 if self .token is None : # In case someone explicitly passes token=None
484484 self .token = _NoAuthenticationToken
@@ -1165,14 +1165,14 @@ class HttpLib(object):
11651165
11661166 If using the default handler, SSL verification can be disabled by passing verify=False.
11671167 """
1168- def __init__ (self , custom_handler = None , verify = False , key_file = None , cert_file = None , context = None , retries = 0 , retryBackoff = 10 ):
1168+ def __init__ (self , custom_handler = None , verify = False , key_file = None , cert_file = None , context = None , retries = 0 , retryDelay = 10 ):
11691169 if custom_handler is None :
11701170 self .handler = handler (verify = verify , key_file = key_file , cert_file = cert_file , context = context )
11711171 else :
11721172 self .handler = custom_handler
11731173 self ._cookies = {}
11741174 self .retries = retries
1175- self .retryBackoff = retryBackoff
1175+ self .retryDelay = retryDelay
11761176
11771177 def delete (self , url , headers = None , ** kwargs ):
11781178 """Sends a DELETE request to a URL.
@@ -1294,7 +1294,7 @@ def request(self, url, message, **kwargs):
12941294 if self .retries <= 0 :
12951295 raise
12961296 else :
1297- time .sleep (self .retryBackoff )
1297+ time .sleep (self .retryDelay )
12981298 self .retries -= 1
12991299 response = record (response )
13001300 if 400 <= response .status :
0 commit comments