parent
4990ea5951
commit
4055db314a
@ -1,17 +1,20 @@
|
|||||||
|
|
||||||
from dataclasses import dataclass
|
from dataclasses import dataclass
|
||||||
|
|
||||||
|
|
||||||
@dataclass
|
@dataclass
|
||||||
class BlockDevice:
|
class BlockDevice:
|
||||||
device: str
|
device: str
|
||||||
cluster: str
|
cluster: str
|
||||||
description: str
|
description: str
|
||||||
|
|
||||||
def __init__(self, device: str, cluster: str, description: str):
|
def __init__(self, device: str, cluster: str, description: str):
|
||||||
self.device = device
|
self.device = device
|
||||||
self.cluster = cluster
|
self.cluster = cluster
|
||||||
self.description = description
|
self.description = description
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return f"BlockDevice(device={self.device}, cluster={self.cluster}, description={self.description})"
|
return (
|
||||||
|
f"BlockDevice(device={self.device},"
|
||||||
|
f" cluster={self.cluster},"
|
||||||
|
f" description={self.description})"
|
||||||
|
)
|
||||||
|
Loading…
Reference in new issue