Merge "Fix referencing to the raid_device var which is not set" into stable/2023.2

This commit is contained in:
Zuul 2024-02-07 22:28:41 +00:00 committed by Gerrit Code Review
commit 76292d6f3b
2 changed files with 6 additions and 1 deletions

View File

@ -2919,7 +2919,7 @@ class GenericHardwareManager(HardwareManager):
except processutils.ProcessExecutionError as e:
LOG.warning('Failed to remove superblock from'
'%(device)s: %(err)s',
{'device': raid_device.name, 'err': e})
{'device': blk.name, 'err': e})
# Erase all partition tables we created
all_holder_disks_uniq = list(

View File

@ -0,0 +1,5 @@
---
fixes:
- |
Fixes referencing to raid_device variable before assignment,
is replaced by blk variable.