controller_ctx: fix Pylint warnings

Signed-off-by: Tucker Polomik <t.polomik@cablelabs.com>
This commit is contained in:
Tucker Polomik
2023-05-05 13:59:25 -06:00
parent 5a723236b1
commit 4c9aa46cb0

View File

@@ -1,3 +1,5 @@
# pylint: disable=too-few-public-methods
"""
Module that represents a HTTP connection to a topology's Controller.
"""
@@ -6,9 +8,9 @@ from http_auth import HTTPBasicAuthParams
class ControllerConnectionCtx():
"""Class to hold the connect to a EasyMesh topology's Controller.
"""
def __init__(self, ip: str, port: str, auth: HTTPBasicAuthParams) -> None:
def __init__(self, ip_addr: str, port: str, auth: HTTPBasicAuthParams) -> None:
if not auth:
raise ValueError("Passed a None auth object.")
self.ip = ip
self.ip_addr = ip_addr
self.port = port
self.auth = auth