diff options
author | Brian Coca <brian.coca+git@gmail.com> | 2015-11-30 07:23:29 -0800 |
---|---|---|
committer | Brian Coca <brian.coca+git@gmail.com> | 2015-11-30 07:23:29 -0800 |
commit | c6fdd3809f8bc2a81142197db7fd1acd9f1f0305 (patch) | |
tree | efaeb433621b1cfac5e77b85962d623a77c23737 | |
parent | 8e6c273104fe341ca3a184b31b8919861e6d2006 (diff) | |
download | ansible-modules-core-c6fdd3809f8bc2a81142197db7fd1acd9f1f0305.tar.gz |
fixed typo EEXISTS is actually EEXIST
fixes #2585
-rw-r--r-- | files/file.py | 2 |
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 |