mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
facts.py throws exception when run on RHEV hypervisor #10383
This commit is contained in:
@@ -479,7 +479,7 @@ class Facts(object):
|
|||||||
if rc == 0:
|
if rc == 0:
|
||||||
self.facts['lsb'] = {}
|
self.facts['lsb'] = {}
|
||||||
for line in out.split('\n'):
|
for line in out.split('\n'):
|
||||||
if len(line) < 1:
|
if len(line) < 1 or ':' not in line:
|
||||||
continue
|
continue
|
||||||
value = line.split(':', 1)[1].strip()
|
value = line.split(':', 1)[1].strip()
|
||||||
if 'LSB Version:' in line:
|
if 'LSB Version:' in line:
|
||||||
|
|||||||
Reference in New Issue
Block a user