Rename make_request -> send_request
This commit is contained in:
@@ -252,7 +252,7 @@ class BaseRequest(BaseCommand):
|
||||
headers = dict(self.headers or {})
|
||||
headers.setdefault('User-Agent', self.user_agent)
|
||||
self.log.info('parameters: %s', params)
|
||||
self.response = self.service.make_request(self.name,
|
||||
self.response = self.service.send_request(self.name,
|
||||
method=self.method, headers=headers, params=params,
|
||||
data=self.post_data, api_version=self.API_VERSION)
|
||||
try:
|
||||
|
||||
@@ -127,7 +127,7 @@ class BaseService(object):
|
||||
## TODO: nuke Action; the request should make it a param instead
|
||||
## TODO: the same should probably happen with API versions, but the
|
||||
## request would have to deal with service.API_VERSION, too
|
||||
def make_request(self, action, method='GET', path=None, params=None,
|
||||
def send_request(self, action, method='GET', path=None, params=None,
|
||||
headers=None, data=None, api_version=None):
|
||||
params = params or {}
|
||||
if action:
|
||||
|
||||
Reference in New Issue
Block a user