Skip to content

Commit 0e95b27

Browse files
committed
ceph-volume: Fix unbound var in disk.get_devices()
00ba00f looks to have regressed. Signed-off-by: Zack Cerza <[email protected]>
1 parent e7ed10f commit 0e95b27

File tree

1 file changed

+1
-0
lines changed
  • src/ceph-volume/ceph_volume/util

1 file changed

+1
-0
lines changed

src/ceph-volume/ceph_volume/util/disk.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -878,6 +878,7 @@ def get_devices(_sys_block_path='/sys/block', device=''):
878878
for key, file_ in facts:
879879
metadata[key] = get_file_contents(os.path.join(sysdir, file_))
880880

881+
device_slaves = []
881882
if block[2] != 'part':
882883
device_slaves = os.listdir(os.path.join(sysdir, 'slaves'))
883884
metadata['partitions'] = get_partitions_facts(sysdir)

0 commit comments

Comments
 (0)