(20250219) fml
This commit is contained in:
@@ -686,7 +686,8 @@ class MikroTikHotspot1000Controller(MikroTikController):
|
||||
self,
|
||||
sql_conn: AsyncMySQL,
|
||||
mongo_data_conn: AsyncMongo,
|
||||
mikrotik_auth: MikroTikHotspot1000Auth
|
||||
mikrotik_auth: MikroTikHotspot1000Auth,
|
||||
action_chain: str | int = None
|
||||
) -> MikroTikAuthResponse:
|
||||
|
||||
"""
|
||||
@@ -695,6 +696,7 @@ class MikroTikHotspot1000Controller(MikroTikController):
|
||||
:param sql_conn: The database connection to use to perform this task.
|
||||
:param mongo_data_conn: The database connection to use to perform this task.
|
||||
:param mikrotik_auth: The set of credentials as received from the UI/API.
|
||||
:param action_chain: A custom action chain to apply for logging the steps.
|
||||
:return: A structured response to indicate what happened during authorization.
|
||||
"""
|
||||
|
||||
@@ -712,6 +714,7 @@ class MikroTikHotspot1000Controller(MikroTikController):
|
||||
http_client = None,
|
||||
action_log_conn = mongo_data_conn
|
||||
)
|
||||
mikrotik_client.new_action_chain(action_chain)
|
||||
|
||||
# Try to configure the device:
|
||||
config_response = await self.quick_config(mikrotik_client, mikrotik_auth, use_https = False)
|
||||
|
||||
Reference in New Issue
Block a user