summaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authorMichael Scherer <misc@zarb.org>2014-09-21 01:49:59 +0200
committerMichael Scherer <misc@zarb.org>2014-09-21 01:50:58 +0200
commit049c9c6b186b156894dd3d63463e6ce46c60231d (patch)
treea08ce721405207030230304856ac065c67c838cf /library
parentAdd note on ec2_lc regarding immutability of configs once created (diff)
downloadansible-049c9c6b186b156894dd3d63463e6ce46c60231d.tar.xz
ansible-049c9c6b186b156894dd3d63463e6ce46c60231d.zip
Make file module work on python 2.4, fix #9080
Python 2.4 do not support "except ... as ..." construct, so revert back to the older syntax.
Diffstat (limited to 'library')
-rw-r--r--library/files/file2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/files/file b/library/files/file
index e25278fded..2f26a3bc31 100644
--- a/library/files/file
+++ b/library/files/file
@@ -339,7 +339,7 @@ def main():
module.fail_json(msg='Cannot touch other than files and directories')
try:
module.set_fs_attributes_if_different(file_args, True)
- except SystemExit as e:
+ except SystemExit, e:
if e.code:
# We take this to mean that fail_json() was called from
# somewhere in basic.py