Skip to content

Commit 9ee47b0

Browse files
authored
Merge pull request ceph#53327 from zmc/cv-disk-unbound-var
ceph-volume: Fix unbound var in disk.get_devices()
2 parents d142210 + 0e95b27 commit 9ee47b0

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
@@ -882,6 +882,7 @@ def get_devices(_sys_block_path='/sys/block', device=''):
882882
for key, file_ in facts:
883883
metadata[key] = get_file_contents(os.path.join(sysdir, file_))
884884

885+
device_slaves = []
885886
if block[2] != 'part':
886887
device_slaves = os.listdir(os.path.join(sysdir, 'slaves'))
887888
metadata['partitions'] = get_partitions_facts(sysdir)

0 commit comments

Comments
 (0)