Correct formatting for lint

This commit is contained in:
Lee Webb 2018-02-14 09:09:17 +11:00 committed by rallytime
parent e8678f633d
commit a07bb48726
No known key found for this signature in database
GPG key ID: E8F1A4B90D0DEA19

View file

@ -646,7 +646,7 @@ def rr_present(name, HostedZoneId=None, DomainName=None, PrivateZone=False, Name
# this appears to be incredibly difficult with the jinja templating engine
# so inject the quotations here to make a viable ChangeBatch
if Type == 'TXT':
rr = '"%s"' % (rr)
rr = '"{}"'.format(rr)
fixed_rrs += [rr]
ResourceRecords = [{'Value': rr} for rr in sorted(fixed_rrs)]