summaryrefslogtreecommitdiff
path: root/hacking
diff options
context:
space:
mode:
authorEvgeni Golov <evgeni@golov.de>2020-05-05 05:08:23 +0200
committerGitHub <noreply@github.com>2020-05-05 08:38:23 +0530
commitcdad594b1690a8354a7ee6dee75a6123fb13203b (patch)
tree6d2103b154e83aff69bec675d3974d8a596b4b0c /hacking
parent1a5bbfbe01039270d1132377f0e438d3764b55ba (diff)
downloadansible-cdad594b1690a8354a7ee6dee75a6123fb13203b.tar.gz
plugin_formatter: sys.exit does not take a file argument (#68016)
Cleanup of leftover from bcdfdc0cc33155598edfd4752db85c6358b17864. sys.exit does not take any named argument.
Diffstat (limited to 'hacking')
-rw-r--r--hacking/build_library/build_ansible/command_plugins/plugin_formatter.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/hacking/build_library/build_ansible/command_plugins/plugin_formatter.py b/hacking/build_library/build_ansible/command_plugins/plugin_formatter.py
index 6482e71fd7..784225e1b8 100644
--- a/hacking/build_library/build_ansible/command_plugins/plugin_formatter.py
+++ b/hacking/build_library/build_ansible/command_plugins/plugin_formatter.py
@@ -678,9 +678,9 @@ def validate_options(options):
''' validate option parser options '''
if not options.module_dir:
- sys.exit("--module-dir is required", file=sys.stderr)
+ sys.exit("--module-dir is required")
if not os.path.exists(options.module_dir):
- sys.exit("--module-dir does not exist: %s" % options.module_dir, file=sys.stderr)
+ sys.exit("--module-dir does not exist: %s" % options.module_dir)
if not options.template_dir:
sys.exit("--template-dir must be specified")