From 0c8f95f59a4275f07b6681d1004e15db847f43ce Mon Sep 17 00:00:00 2001 From: David Fischer Date: Thu, 30 Jun 2016 15:42:14 +0200 Subject: [PATCH] Fix 'function' has no attribute 'errno' (#2502) --- lib/ansible/modules/extras/system/known_hosts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/extras/system/known_hosts.py b/lib/ansible/modules/extras/system/known_hosts.py index e7d9df59ccf..a355b6db5fe 100644 --- a/lib/ansible/modules/extras/system/known_hosts.py +++ b/lib/ansible/modules/extras/system/known_hosts.py @@ -124,7 +124,7 @@ def enforce_state(module, params): try: inf=open(path,"r") except IOError: - e = get_exception + e = get_exception() if e.errno == errno.ENOENT: inf=None else: