Skip to content

Commit 1643fd1

Browse files
committed
sr: Add get_name_label() method
We need it to filter SRs Signed-off-by: Gaëtan Lehmann <gaetan.lehmann@vates.tech>
1 parent b5e04c3 commit 1643fd1

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

lib/sr.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,9 @@ def get_type(self) -> str:
205205
self._type = self.param_get('type')
206206
return self._type
207207

208+
def get_name_label(self) -> str:
209+
return self.param_get('name-label')
210+
208211
def create_vdi(
209212
self, name_label: str | None = None, virtual_size: int = 1 * GiB, image_format: ImageFormat | None = None
210213
) -> VDI:

0 commit comments

Comments
 (0)