Commit d87ae7d2 authored by Iustin Pop's avatar Iustin Pop
Browse files

Fix VG listing broken by r510

LVM code sometimes adds an extra separator at the end of the field list.
Make the code strip it if exists.

Reviewed-by: imsnah
parent f4d377e7
......@@ -504,7 +504,7 @@ def _GetVGInfo(vg_name):
errmsg = "volume group %s not present" % vg_name
logger.Error(errmsg)
return retdic
valarr = retval.stdout.strip().split(':')
valarr = retval.stdout.strip().rstrip(':').split(':')
if len(valarr) == 3:
try:
retdic = {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment