Skip to content

Commit

Permalink
Avoid file module false positive in newer pylint.
Browse files Browse the repository at this point in the history
  • Loading branch information
mattclay committed Jun 18, 2020
1 parent 1a0d8a5 commit 9bbde9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ansible/modules/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,7 @@ def execute_touch(path, follow, timestamps):
changed = module.set_fs_attributes_if_different(file_args, changed, diff, expand=False)
changed |= update_timestamp_for_file(file_args['path'], mtime, atime, diff)
except SystemExit as e:
if e.code:
if e.code: # this is the exit code passed to sys.exit, not a constant -- pylint: disable=using-constant-test
# We take this to mean that fail_json() was called from
# somewhere in basic.py
if prev_state == 'absent':
Expand Down

0 comments on commit 9bbde9d

Please sign in to comment.