From b44bf0379bfa0a30a08bfaa63ca5a9c683bfaf70 Mon Sep 17 00:00:00 2001 From: Stephen Gordon Date: Thu, 5 Mar 2015 10:28:26 -0600 Subject: [PATCH] facts.py throws exception when run on RHEV hypervisor #10383 --- lib/ansible/module_utils/facts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/module_utils/facts.py b/lib/ansible/module_utils/facts.py index 17e7c62f83a..30ce407b36d 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: