Merge "Fix H702 pep8 error with latest hacking"
This commit is contained in:
@@ -248,10 +248,10 @@ class MetadataRequestHandler(wsgi.Application):
|
|||||||
|
|
||||||
if len(ports) != 1:
|
if len(ports) != 1:
|
||||||
msg = _('Expected a single port matching provider %(pr)s '
|
msg = _('Expected a single port matching provider %(pr)s '
|
||||||
'and IP %(ip)s. Found %(count)d.' % {
|
'and IP %(ip)s. Found %(count)d.') % {
|
||||||
'pr': provider_id,
|
'pr': provider_id,
|
||||||
'ip': instance_address,
|
'ip': instance_address,
|
||||||
'count': len(ports)})
|
'count': len(ports)}
|
||||||
|
|
||||||
LOG.error(msg)
|
LOG.error(msg)
|
||||||
raise webob.exc.HTTPBadRequest(explanation=msg)
|
raise webob.exc.HTTPBadRequest(explanation=msg)
|
||||||
|
|||||||
Reference in New Issue
Block a user