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:
parent
30adc9d4f0
commit
0d68e36950
@ -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 = {}
|
||||
|
Loading…
x
Reference in New Issue
Block a user