Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix the failure where no route53 record is found
  • Loading branch information
jiaqiluo authored and sangeethah committed May 29, 2020
1 parent 48923e2 commit 54ff40f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/validation/lib/aws.py
Expand Up @@ -453,7 +453,8 @@ def delete_route_53_record(self, record_name):
StartRecordName=record_name,
StartRecordType='CNAME',
MaxItems='1')
record = res["ResourceRecordSets"][0]
if len(res["ResourceRecordSets"]) > 0:
record = res["ResourceRecordSets"][0]
except ClientError as e:
print(e.response)

Expand Down

0 comments on commit 54ff40f

Please sign in to comment.