Fix Invalid() exception msg
resource.obj_name() is method, so in case of setting it as bound would result in following message in the raised error [1] [1] http://paste.openstack.org/show/793805/ Change-Id: Id5ffd3228824470ad79fe63fc6546b9ae5124776
This commit is contained in:
parent
124b0eb622
commit
0dba8a010f
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue