Skip to content

Commit

Permalink
Make file module work on python 2.4, fix ansible#9080
Browse files Browse the repository at this point in the history
Python 2.4 do not support "except ... as ..." construct, so
revert back to the older syntax.
  • Loading branch information
mscherer committed Sep 20, 2014
1 parent 1bae4e4 commit 049c9c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/files/file
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 049c9c6

Please sign in to comment.