diff --git a/lib/ansible/module_utils/facts.py b/lib/ansible/module_utils/facts.py index 924781dfe8..41f79a4e8c 100644 --- a/lib/ansible/module_utils/facts.py +++ b/lib/ansible/module_utils/facts.py @@ -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: