nlbaas2octavia: Script fails when no members found
The migration script breaks when there are no members in the nlbaas table. Change-Id: Ia3a57adfe41dad9e87f5278317180ae7a6adb592
This commit is contained in:
parent
82032ec987
commit
10c5c2b940
|
@ -205,8 +205,9 @@ def process_members(LOG, n_session, o_session, project_id, pool_id):
|
|||
'updated_at': datetime.datetime.utcnow(),
|
||||
'provisioning_status': member[6], 'name': member[8],
|
||||
'backup': False})
|
||||
if result.rowcount != 1:
|
||||
raise Exception(_('Unable to create member in the Octavia database.'))
|
||||
if result.rowcount != 1:
|
||||
raise Exception(
|
||||
_('Unable to create member in the Octavia database.'))
|
||||
|
||||
|
||||
def process_SNI(n_session, o_session, listener_id):
|
||||
|
|
Loading…
Reference in New Issue