From ef59cb47dd22c700a9c6103aeb8c2d2b90979b0f Mon Sep 17 00:00:00 2001 From: William Wernert Date: Tue, 3 Aug 2021 15:26:57 -0400 Subject: [PATCH] Use print_err function --- salt/common/tools/sbin/so-rule | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/salt/common/tools/sbin/so-rule b/salt/common/tools/sbin/so-rule index bd1556f58..07d6cd2cc 100755 --- a/salt/common/tools/sbin/so-rule +++ b/salt/common/tools/sbin/so-rule @@ -350,7 +350,7 @@ def main(): signal.signal(signal.SIGINT, sigint_handler) if os.geteuid() != 0: - print('You must run this script as root', file=sys.stderr) + print_err('You must run this script as root') sys.exit(1) apply_help='After updating rule configuration, apply the idstools state.'