We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 44e39a9 + dfef157 commit ae68f63Copy full SHA for ae68f63
kvmagent/kvmagent/plugins/storage_device.py
@@ -313,7 +313,9 @@ def refresh_mpath(disks_by_path):
313
devpaths = [os.path.realpath(os.path.join("/dev/disk/by-path", s)) for s in disks_by_path]
314
mpaths = set()
315
for devpath in devpaths:
316
- if devpath: mpaths.add(shell.call("multipath -l -v1 "+devpath).strip())
+ r, o = bash.bash_ro("multipath -l -v1 %s" % devpath)
317
+ if r == 0 and o.strip() != "":
318
+ mpaths.add(o.strip())
319
for mpath in mpaths:
320
if mpath: shell.run("multipathd resize map "+mpath)
321
0 commit comments