Commit 761540e9 by Brian Coca

Merge pull request #10392 from sgordon46/devel

facts.py throws exception when run on RHEV hypervisor #10383
parents aed49315 b44bf037
......@@ -479,7 +479,7 @@ class Facts(object):
if rc == 0:
self.facts['lsb'] = {}
for line in out.split('\n'):
if len(line) < 1:
if len(line) < 1 or ':' not in line:
continue
value = line.split(':', 1)[1].strip()
if 'LSB Version:' in line:
......
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