Merge "Fix Invalid() exception msg"

This commit is contained in:
Zuul 2020-06-23 21:17:37 +00:00 committed by Gerrit Code Review
commit 85fcf10574
1 changed files with 1 additions and 1 deletions

View File

@ -791,7 +791,7 @@ class VolumeManager(manager.CleanableManager,
if res_backend != backend: if res_backend != backend:
msg = (_('Invalid %(resource)s: %(resource)s %(id)s is not ' msg = (_('Invalid %(resource)s: %(resource)s %(id)s is not '
'local to %(backend)s.') % 'local to %(backend)s.') %
{'resource': resource.obj_name, 'id': resource.id, {'resource': resource.obj_name(), 'id': resource.id,
'backend': backend}) 'backend': backend})
raise exception.Invalid(msg) raise exception.Invalid(msg)