Skip to content

Commit e390d2e

Browse files
committed
fix(linstorvhdutil): support missing session (#97)
Session attr is not set during "attach/detach calls from config". In this context local method must always be called. Signed-off-by: Ronan Abhamon <ronan.abhamon@vates.tech>
1 parent 35c7662 commit e390d2e

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

drivers/linstorvhdutil.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,9 @@ def wrapper(*args, **kwargs):
9494
self._linstor.get_volume_name(vdi_uuid)
9595
)
9696

97+
if not self._session:
98+
return self._call_local_method(local_method, device_path, *args[2:], **kwargs)
99+
97100
remote_args = {
98101
'devicePath': device_path,
99102
'groupName': self._linstor.group_name

0 commit comments

Comments
 (0)