mirror of
https://github.com/ceph/ceph
synced 2025-01-28 22:14:02 +00:00
misc: get_wwn_id_map() needs to return dict
If we can't find device ids, we need to return a dict, not a list. Signed-off-by: Sam Lang <sam.lang@inktank.com>
This commit is contained in:
parent
dcf99e43b9
commit
64e3966779
@ -363,7 +363,7 @@ def get_wwn_id_map(remote, devs):
|
||||
stdout = r.stdout.getvalue()
|
||||
except:
|
||||
log.error('Failed to get wwn devices! Using /dev/sd* devices...')
|
||||
return devs
|
||||
return dict((d,d) for d in devs)
|
||||
|
||||
devmap = {}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user