updating explanation of boto client usage

This commit is contained in:
Jack Danger 2017-08-02 13:30:07 -07:00
parent 08a932f5f1
commit 161a187ee5

View File

@ -20,10 +20,10 @@ def api_version_elb_backend(*args, **kwargs):
# boto3 # boto3
version = request.values.get('Version') version = request.values.get('Version')
elif isinstance(request, AWSPreparedRequest): elif isinstance(request, AWSPreparedRequest):
# botocore # boto in-memory
version = parse_qs(request.body).get('Version')[0] version = parse_qs(request.body).get('Version')[0]
else: else:
# boto # boto in server mode
request.parse_request() request.parse_request()
version = request.querystring.get('Version')[0] version = request.querystring.get('Version')[0]