[admin_api] Fix for bad error message

Show the device name instead of its id when there is no LB attached

Change-Id: I0437c2594f1a1da3d72e26334c226169900d4f6f
This commit is contained in:
Marc Pilon
2013-10-23 05:52:43 -04:00
committed by David Shrewsbury
parent e4b2dad8de
commit ccdcb0e473

View File

@@ -171,7 +171,7 @@ class Stats(object):
if not data:
self.logger.error(
'Device {0} has no Loadbalancer attached'.
format(data.id)
format(lb)
)
continue
message = (