Workaround pylint issue with python3.6

Change-Id: Ie4cb93fbd60f29cd624311b28bcce36d380d9d53
This commit is contained in:
Federico Ressi 2021-10-11 11:41:11 +02:00
parent 332ec6130a
commit 3830892f11
1 changed files with 3 additions and 2 deletions

View File

@ -75,8 +75,8 @@ class NeutronNovaResponseReader(NeutronNovaCommonReader):
message_pattern = r'Nova event response: '
responses: tobiko.Selection[NeutronNovaResponse]
def read_responses(self) \
-> tobiko.Selection[NeutronNovaResponse]:
def read_responses(self) -> tobiko.Selection[NeutronNovaResponse]:
# pylint: disable=no-member
responses = tobiko.Selection[NeutronNovaResponse]()
message_pattern = re.compile(self.message_pattern)
for hostname, line in self.log_digger.find_lines(
@ -134,6 +134,7 @@ class OvnUnsupportedDhcpOptionReader(NeutronNovaCommonReader):
def read_responses(self) \
-> tobiko.Selection[UnsupportedDhcpOptionMessage]:
# pylint: disable=no-member
def _get_port_uuid(line):
port_pattern = 'on port (.*) is not suppported by OVN'
return re.findall(port_pattern, line)[0]