From f87c3eb6a386cb50d6474dc83fad5e95d865beb9 Mon Sep 17 00:00:00 2001 From: Ronan Abhamon Date: Mon, 12 Feb 2024 20:54:06 +0100 Subject: [PATCH] fix(LinstorSR): activate VG if attach from config is asked Signed-off-by: Ronan Abhamon --- drivers/LinstorSR.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/LinstorSR.py b/drivers/LinstorSR.py index de10f423..b6b15298 100755 --- a/drivers/LinstorSR.py +++ b/drivers/LinstorSR.py @@ -382,7 +382,7 @@ def wrapped_method(self, *args, **kwargs): def load(self, *args, **kwargs): # Activate all LVMs to make drbd-reactor happy. - if self.srcmd.cmd == 'sr_attach': + if self.srcmd.cmd in ('sr_attach', 'vdi_attach_from_config'): activate_lvm_group(self._group_name) if not self._has_session: