-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…i-subcommands Add deprecation warning to jitsi subcommands
- Loading branch information
Showing
6 changed files
with
25 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,6 +20,8 @@ | |
|
||
from __future__ import annotations | ||
|
||
import logging | ||
|
||
from argparse import Namespace | ||
|
||
from matrixctl.handlers.ssh import SSH | ||
|
@@ -31,6 +33,8 @@ | |
__email__: str = "[email protected]" | ||
|
||
|
||
logger = logging.getLogger(__name__) | ||
|
||
JID_EXT: str = "matrix-jitsi-web" | ||
|
||
|
||
|
@@ -50,13 +54,12 @@ def addon(arg: Namespace, yaml: YAML) -> int: | |
Non-zero value indicates error code, or zero on success. | ||
""" | ||
address = ( | ||
yaml.get("server", "ssh", "address") | ||
if yaml.get("server", "ssh", "address") | ||
else f"matrix.{yaml.get('server', 'api', 'domain')}" | ||
logger.warning( | ||
"[DEPRECATION WARNING] adduser-jitsi will be retired in version 0.13.0" | ||
) | ||
|
||
with SSH( | ||
address, | ||
yaml.get("server", "ssh", "address"), | ||
yaml.get("server", "ssh", "user"), | ||
yaml.get("server", "ssh", "port"), | ||
) as ssh: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,6 +19,8 @@ | |
|
||
from __future__ import annotations | ||
|
||
import logging | ||
|
||
from argparse import Namespace | ||
|
||
from matrixctl.handlers.ssh import SSH | ||
|
@@ -29,6 +31,9 @@ | |
__email__: str = "[email protected]" | ||
|
||
|
||
logger = logging.getLogger(__name__) | ||
|
||
|
||
JID_EXT: str = "matrix-jitsi-web" | ||
|
||
|
||
|
@@ -50,13 +55,13 @@ def addon(arg: Namespace, yaml: YAML) -> int: | |
Non-zero value indicates error code, or zero on success. | ||
""" | ||
address = ( | ||
yaml.get("server", "ssh", "address") | ||
if yaml.get("server", "ssh", "address") | ||
else f"matrix.{yaml.get('server', 'api','domain')}" | ||
|
||
logger.warning( | ||
"[DEPRECATION WARNING] adduser-jitsi will be retired in version 0.13.0" | ||
) | ||
|
||
with SSH( | ||
address, | ||
yaml.get("server", "ssh", "address"), | ||
yaml.get("server", "ssh", "user"), | ||
yaml.get("server", "ssh", "port"), | ||
) as ssh: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Add a deprecation warning to the adduser-jitsi and deluser-jitsi commands. They are planned for removal in MatrixCtl v0.13.0. |