From ccdcb0e4735c36ff6dac0f2acb73a32dcaa1d54a Mon Sep 17 00:00:00 2001 From: Marc Pilon Date: Wed, 23 Oct 2013 05:52:43 -0400 Subject: [PATCH] [admin_api] Fix for bad error message Show the device name instead of its id when there is no LB attached Change-Id: I0437c2594f1a1da3d72e26334c226169900d4f6f --- libra/admin_api/stats/scheduler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libra/admin_api/stats/scheduler.py b/libra/admin_api/stats/scheduler.py index e2ead86f..c6b28073 100644 --- a/libra/admin_api/stats/scheduler.py +++ b/libra/admin_api/stats/scheduler.py @@ -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 = (