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
This commit is contained in:
David Shrewsbury 2013-08-27 16:55:48 -04:00
parent 30adc9d4f0
commit 0d68e36950
1 changed files with 1 additions and 1 deletions

View File

@ -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 = {}