Merge "V2T migration: Add L2GW ids in validation error" into stable/train

This commit is contained in:
Zuul 2021-02-15 11:56:12 +00:00 committed by Gerrit Code Review
commit b9a0d27875
1 changed files with 2 additions and 2 deletions

View File

@ -279,8 +279,8 @@ def validate_config_for_migration(resource, event, trigger, **kwargs):
# L2GW is not supported with the policy plugin
l2gws = admin_context.session.query(l2gateway_models.L2Gateway).all()
if len(l2gws):
LOG.error("ERROR: Found %s L2Gws. Networking-l2gw is not supported.",
len(l2gws))
LOG.error("ERROR: Found %s L2Gws: %s. Networking-l2gw is not "
"supported.", len(l2gws), [l2gw.id for l2gw in l2gws])
n_errors = n_errors + 1
if n_errors > 0: