From 86f51a41360010f6aeac638fe6ae777f9162382d Mon Sep 17 00:00:00 2001 From: Frode Nordahl Date: Thu, 29 Feb 2024 10:03:38 +0100 Subject: [PATCH] Explicitly set __tablename__ for Trunk Without this change pylint fails with: neutron/objects/trunk.py:75:15: W0143: Comparing against a callable, did you omit the parenthesis? (comparison-with-callable) Trivial-Fix Signed-off-by: Frode Nordahl Change-Id: I97f1dde896be114b81732ff74ab86a4a5be250e4 --- neutron/services/trunk/models.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/neutron/services/trunk/models.py b/neutron/services/trunk/models.py index 0fe81dec49b..5a678b9f46a 100644 --- a/neutron/services/trunk/models.py +++ b/neutron/services/trunk/models.py @@ -26,6 +26,8 @@ from neutron.db import models_v2 class Trunk(standard_attr.HasStandardAttributes, model_base.BASEV2, model_base.HasId, model_base.HasProject): + __tablename__ = 'trunks' + admin_state_up = sa.Column( sa.Boolean(), nullable=False, server_default=sql.true()) name = sa.Column(sa.String(db_const.NAME_FIELD_SIZE))