From 2c7a33f71d32a0c2ea64669ad5d0151e0f4fa6d0 Mon Sep 17 00:00:00 2001 From: James Cammarata Date: Wed, 2 Mar 2016 08:05:43 -0500 Subject: [PATCH] Fixing bug in setup related to StringIO fixes --- 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 974d47a55d..f5558e8650 100644 --- a/lib/ansible/module_utils/facts.py +++ b/lib/ansible/module_utils/facts.py @@ -257,7 +257,7 @@ class Facts(object): # load raw ini cp = ConfigParser.ConfigParser() try: - cp.readfp(StringIO.StringIO(out)) + cp.readfp(StringIO(out)) except ConfigParser.Error: fact = "error loading fact - please check content" else: