Skip to content

Commit 9165f76

Browse files
committed
fix linstor manager deflate
1 parent ba8a316 commit 9165f76

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/linstor-manager

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,7 @@ def repair(session, args):
597597

598598
def deflate(session, args):
599599
try:
600-
cowutil = getCowUtil(args['vdiType'])
600+
vdi_type = args['vdiType']
601601
device_path = args['devicePath']
602602
new_size = int(args['newSize'])
603603
old_size = int(args['oldSize'])
@@ -609,7 +609,7 @@ def deflate(session, args):
609609
group_name,
610610
logger=util.SMlog
611611
)
612-
LinstorCowUtil(session, linstor, cowutil).deflate(device_path, new_size, old_size, zeroize)
612+
LinstorCowUtil(session, linstor, vdi_type).deflate(device_path, new_size, old_size, zeroize)
613613
return ''
614614
except Exception as e:
615615
util.SMlog('linstor-manager:deflate error: {}'.format(e))

0 commit comments

Comments
 (0)