Fix USM tox issues

This commit fix tox issues.

Test Plan
PASS: run tox and verify no errors

Story: 2010676
Task: 50743

Change-Id: I00ca6a6f323ed26d165a17255de2f660ba126a2e
Signed-off-by: Heitor Matsui <heitorvieira.matsui@windriver.com>
This commit is contained in:
Heitor Matsui
2024-08-05 19:05:53 -03:00
parent 0562755ef1
commit 349e75f11e
5 changed files with 9 additions and 8 deletions

View File

@@ -139,9 +139,9 @@ class PatchService(object):
if utils.get_management_version(hostname=constants.PREBOOTSTRAP_HOSTNAME
) == constants.ADDRESS_VERSION_IPV6:
self.sock_out = socket.socket(socket.AF_INET6,
socket.SOCK_DGRAM)
socket.SOCK_DGRAM)
self.sock_in = socket.socket(socket.AF_INET6,
socket.SOCK_DGRAM)
socket.SOCK_DGRAM)
self.sock_out.setblocking(0)
self.sock_in.setblocking(0)
@@ -153,9 +153,9 @@ class PatchService(object):
self.sock_in.bind(('', self.port))
else:
self.sock_out = socket.socket(socket.AF_INET,
socket.SOCK_DGRAM)
socket.SOCK_DGRAM)
self.sock_in = socket.socket(socket.AF_INET,
socket.SOCK_DGRAM)
socket.SOCK_DGRAM)
self.sock_out.setblocking(0)
self.sock_in.setblocking(0)
@@ -167,7 +167,6 @@ class PatchService(object):
return self.sock_in
def setup_socket(self):
self.socket_lock_acquire()