Skip to content

Commit

Permalink
fix(LinstorSR): activate VG if attach from config is asked
Browse files Browse the repository at this point in the history
Signed-off-by: Ronan Abhamon <[email protected]>
  • Loading branch information
Wescoeur committed Feb 12, 2024
1 parent 5d5ec1d commit f87c3eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/LinstorSR.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit f87c3eb

Please sign in to comment.