From 93540b726969cfe35c4499ce87c8430106b0887e 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) --- system/known_hosts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/known_hosts.py b/system/known_hosts.py index e7d9df59ccf..a355b6db5fe 100644 --- a/system/known_hosts.py +++ b/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: