From 0d68e3695005ec1a77022a2f0c41032b07758b31 Mon Sep 17 00:00:00 2001 From: David Shrewsbury Date: Tue, 27 Aug 2013 16:55:48 -0400 Subject: [PATCH] Fix display of monitor list if no monitor defined It is possible that some older, predefined load balancers may not have any monitor defined. This fixes the output (empty values are better than an error message). Change-Id: Ic7719811366f79c3dbe4ab7011ceac5b6c22501d --- libraclient/libraapi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraclient/libraapi.py b/libraclient/libraapi.py index 8c99467..676c5a1 100644 --- a/libraclient/libraapi.py +++ b/libraclient/libraapi.py @@ -221,7 +221,7 @@ class LibraAPI(object): column_names = ['Type', 'Delay', 'Timeout', 'Attempts', 'Path'] columns = ['type', 'delay', 'timeout', 'attemptsBeforeDeactivation', 'path'] - self._render_dict(column_names, columns, body) + self._render_dict(column_names, columns, body or {}) def monitor_modify_lb(self, args): data = {}