From 3025451b1091adebeefe365655cc84174c0487b3 Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Mon, 30 Nov 2015 07:23:29 -0800 Subject: [PATCH] fixed typo EEXISTS is actually EEXIST fixes #2585 --- lib/ansible/modules/files/file.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/files/file.py b/lib/ansible/modules/files/file.py index 2a1554f90e..c5912d8927 100644 --- a/lib/ansible/modules/files/file.py +++ b/lib/ansible/modules/files/file.py @@ -288,7 +288,7 @@ def main(): except OSError, ex: # Possibly something else created the dir since the os.path.exists # check above. As long as it's a dir, we don't need to error out. - if not (ex.errno == errno.EEXISTS and os.isdir(curpath)): + if not (ex.errno == errno.EEXIST and os.isdir(curpath)): raise tmp_file_args = file_args.copy() tmp_file_args['path']=curpath