1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

facts.py throws exception when run on RHEV hypervisor #10383

This commit is contained in:
Stephen Gordon 2015-03-05 10:28:26 -06:00
parent 4ff841c2a2
commit b44bf0379b

View file

@ -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: