mirror of
https://gitlab.com/prpl-foundation/prplmesh/topologyviewer.git
synced 2025-12-20 11:38:32 +08:00
controller_ctx: fix Pylint warnings
Signed-off-by: Tucker Polomik <t.polomik@cablelabs.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user