Commit dd4ac463 by Dag Wieers

Import errno to avoid 'NameError: global name 'errno' is not defined'

I hit the following exception because errno is referenced but not imported.

```
fatal: [system01] => failed to parse: Traceback (most recent call last):
  File "/root/.ansible/tmp/ansible-1354644532.37-246102819320352/copy", line 782, in <module>
    main()
  File "/root/.ansible/tmp/ansible-1354644532.37-246102819320352/copy", line 117, in main
    module.atomic_replace(dest_tmp, dest)
  File "/root/.ansible/tmp/ansible-1354644532.37-246102819320352/copy", line 772, in atomic_replace
    if e.errno != errno.EPERM:
NameError: global name 'errno' is not defined
```
parent dbf5a57a
...@@ -56,6 +56,7 @@ import stat ...@@ -56,6 +56,7 @@ import stat
import grp import grp
import pwd import pwd
import platform import platform
import errno
HAVE_SELINUX=False HAVE_SELINUX=False
try: try:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment