summaryrefslogtreecommitdiff
path: root/kvmd/plugins/msd/__init__.py
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2019-09-24 00:03:31 +0300
committerDevaev Maxim <[email protected]>2019-09-24 00:03:31 +0300
commitaee005787c1c1082e50224fc492409e49b60d389 (patch)
treee531c4a616df4ebde6c69988e5a7c1bc21bf28df /kvmd/plugins/msd/__init__.py
parent661828502e7f9e3b8afcdff8def9678937de97a9 (diff)
preparing to otg
Diffstat (limited to 'kvmd/plugins/msd/__init__.py')
-rw-r--r--kvmd/plugins/msd/__init__.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/kvmd/plugins/msd/__init__.py b/kvmd/plugins/msd/__init__.py
index fa31e00b..d5aa3064 100644
--- a/kvmd/plugins/msd/__init__.py
+++ b/kvmd/plugins/msd/__init__.py
@@ -44,19 +44,19 @@ class MsdOfflineError(MsdOperationError):
super().__init__("MSD is not found")
-class MsdAlreadyOnServerError(MsdOperationError):
+class MsdAlreadyConnectedError(MsdOperationError):
def __init__(self) -> None:
super().__init__("MSD is already connected to Server")
-class MsdAlreadyOnKvmError(MsdOperationError):
+class MsdAlreadyDisconnectedError(MsdOperationError):
def __init__(self) -> None:
- super().__init__("MSD is already connected to KVM")
+ super().__init__("MSD is already disconnected from Server")
-class MsdNotOnKvmError(MsdOperationError):
+class MsdConnectedError(MsdOperationError):
def __init__(self) -> None:
- super().__init__("MSD is not connected to KVM")
+ super().__init__("MSD connected to Server, but should not")
class MsdIsBusyError(MsdOperationError):
@@ -76,10 +76,10 @@ class BaseMsd(BasePlugin):
async def cleanup(self) -> None:
pass
- async def connect_to_kvm(self) -> Dict:
+ async def connect(self) -> Dict:
raise NotImplementedError
- async def connect_to_server(self) -> Dict:
+ async def disconnect(self) -> Dict:
raise NotImplementedError
async def reset(self) -> None: