Skip to content

Commit 3309a97

Browse files
vojtechtrefnyrichm
authored andcommitted
fix: Add missing volume name to exception in VDO pool _create
1 parent 3766e9e commit 3309a97

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

library/blivet.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1160,8 +1160,9 @@ def _get_params_create_vdo(self):
11601160
pool_size = self._trim_size(Size(self._volume['vdo_pool_size']), parent_device)
11611161
except BlivetAnsibleError:
11621162
# Literally the same error just more specific description
1163-
raise BlivetAnsibleError("specified 'vdo_pool_size' for volume '%s' "
1164-
"exceeds available space in pool '%s' (%s)" % (pool_size,
1163+
raise BlivetAnsibleError("specified 'vdo_pool_size' '%s' for volume '%s' "
1164+
"exceeds available space in pool '%s' (%s)" % (self._volume['vdo_pool_size'],
1165+
self._volume['name'],
11651166
parent_device.name,
11661167
parent_device.free_space))
11671168

0 commit comments

Comments
 (0)