Avoid file module false positive in newer pylint.

This commit is contained in:
Matt Clay 2020-06-18 08:14:02 -07:00
parent 1a0d8a51cd
commit 9bbde9d085

View file

@ -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':