diff --git a/lib/ansible/module_utils/facts.py b/lib/ansible/module_utils/facts.py index a214b6bb30d..c5dc1f9ac80 100644 --- a/lib/ansible/module_utils/facts.py +++ b/lib/ansible/module_utils/facts.py @@ -2987,6 +2987,9 @@ def get_file_content(path, default=None, strip=True): data = data.strip() if len(data) == 0: data = default + except: + # todo: issue warning about unreadable file? + pass finally: datafile.close() return data