Skip to content

Commit f87c3eb

Browse files
committed
fix(LinstorSR): activate VG if attach from config is asked
Signed-off-by: Ronan Abhamon <[email protected]>
1 parent 5d5ec1d commit f87c3eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: drivers/LinstorSR.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ def wrapped_method(self, *args, **kwargs):
382382

383383
def load(self, *args, **kwargs):
384384
# Activate all LVMs to make drbd-reactor happy.
385-
if self.srcmd.cmd == 'sr_attach':
385+
if self.srcmd.cmd in ('sr_attach', 'vdi_attach_from_config'):
386386
activate_lvm_group(self._group_name)
387387

388388
if not self._has_session:

0 commit comments

Comments
 (0)