diff --git a/tox.ini b/tox.ini index 8080eaee..b775e4ee 100644 --- a/tox.ini +++ b/tox.ini @@ -30,6 +30,6 @@ commands = {posargs} [flake8] # H302 import only modules. -ignore = E121,E122,E123,E124,E126,E127,E128,H302 +ignore = E122,E123,E124,E126,E127,E128,H302 builtins = _ exclude = .venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build,tools diff --git a/tuskar/db/sqlalchemy/models.py b/tuskar/db/sqlalchemy/models.py index 47a5502e..df07aefb 100644 --- a/tuskar/db/sqlalchemy/models.py +++ b/tuskar/db/sqlalchemy/models.py @@ -129,8 +129,8 @@ class OvercloudRoleCount(Base): num_nodes = Column(Integer, nullable=False) def __eq__(self, other): - return self.overcloud_role_id == other.overcloud_role_id \ - and self.overcloud_id == other.overcloud_id + return (self.overcloud_role_id == other.overcloud_role_id + and self.overcloud_id == other.overcloud_id) class OvercloudAttribute(Base): @@ -156,8 +156,8 @@ class OvercloudAttribute(Base): value = Column(Text()) def __eq__(self, other): - return self.overcloud_id == other.overcloud_id \ - and self.key == other.key + return (self.overcloud_id == other.overcloud_id + and self.key == other.key) class Overcloud(Base):