Python3 fix.
This commit is contained in:
parent
57f1199b35
commit
62f82cea03
1 changed files with 1 additions and 1 deletions
|
|
@ -55,7 +55,7 @@ def rrset_response(request, full_url, headers):
|
||||||
action = value['Action']
|
action = value['Action']
|
||||||
record_set = value['ResourceRecordSet']
|
record_set = value['ResourceRecordSet']
|
||||||
if action == 'CREATE':
|
if action == 'CREATE':
|
||||||
resource_records = record_set['ResourceRecords'].values()[0]
|
resource_records = list(record_set['ResourceRecords'].values())[0]
|
||||||
if not isinstance(resource_records, list):
|
if not isinstance(resource_records, list):
|
||||||
# Depending on how many records there are, this may or may not be a list
|
# Depending on how many records there are, this may or may not be a list
|
||||||
resource_records = [resource_records]
|
resource_records = [resource_records]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue