Skip to content

Commit 233d200

Browse files
authored
Merge pull request #58 from stackhpc/yoga_raid_device_unset
Fix referencing to the raid_device var which is not set
2 parents cfd3963 + 862458b commit 233d200

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

ironic_python_agent/hardware.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2543,7 +2543,7 @@ def _delete_config_pass(self, raid_devices):
25432543
except processutils.ProcessExecutionError as e:
25442544
LOG.warning('Failed to remove superblock from'
25452545
'%(device)s: %(err)s',
2546-
{'device': raid_device.name, 'err': e})
2546+
{'device': blk.name, 'err': e})
25472547

25482548
# Erase all partition tables we created
25492549
all_holder_disks_uniq = list(
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
fixes:
3+
- |
4+
Fixes referencing to raid_device variable before assignment,
5+
is replaced by blk variable.

0 commit comments

Comments
 (0)