summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Coca <brian.coca+git@gmail.com>2015-11-30 07:23:29 -0800
committerBrian Coca <brian.coca+git@gmail.com>2015-11-30 07:23:29 -0800
commitc6fdd3809f8bc2a81142197db7fd1acd9f1f0305 (patch)
treeefaeb433621b1cfac5e77b85962d623a77c23737
parent8e6c273104fe341ca3a184b31b8919861e6d2006 (diff)
downloadansible-modules-core-c6fdd3809f8bc2a81142197db7fd1acd9f1f0305.tar.gz
fixed typo EEXISTS is actually EEXIST
fixes #2585
-rw-r--r--files/file.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/files/file.py b/files/file.py
index cc94922f..42856557 100644
--- a/files/file.py
+++ b/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