Change formatting style of logging lines per review

This commit is contained in:
Lee Webb 2018-01-25 10:35:18 +11:00 committed by rallytime
parent ebb244396b
commit f427b0febc
No known key found for this signature in database
GPG key ID: E8F1A4B90D0DEA19

View file

@ -601,7 +601,7 @@ def rr_present(name, HostedZoneId=None, DomainName=None, PrivateZone=False, Name
fields = rr.split(':')
if fields[1] == 'ec2_instance_tag':
if len(fields) != 5:
log.warning("Invalid magic RR value seen: '{}'. Passing as-is.".format(rr))
log.warning("Invalid magic RR value seen: '%s'. Passing as-is." % (rr))
fixed_rrs += [rr]
continue
tag_name = fields[2]
@ -626,7 +626,7 @@ def rr_present(name, HostedZoneId=None, DomainName=None, PrivateZone=False, Name
instance = r[0]
res = getattr(instance, instance_attr, None)
if res:
log.debug('Found {} {} for instance {}'.format(instance_attr, res, instance.id))
log.debug('Found %s %s for instance %s' % (instance_attr, res, instance.id))
fixed_rrs += [_to_aws_encoding(res)]
else:
ret['comment'] = 'Attribute {} not found on instance {}'.format(instance_attr,