From 435924f3def549aff72cf5f32ea3b1e8a6eda18b 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 0757a662183..c4623966664 100644 --- a/lib/ansible/module_utils/facts.py +++ b/lib/ansible/module_utils/facts.py @@ -247,7 +247,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: