From 92937a1ad1b58bf4f1cd004d19f2d4ee7443b52a Mon Sep 17 00:00:00 2001 From: Ross Wolf <31489089+rw-access@users.noreply.github.com> Date: Tue, 27 Jul 2021 16:29:50 -0600 Subject: [PATCH] [CI] Fix kibana PR command again (#1386) --- detection_rules/utils.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/detection_rules/utils.py b/detection_rules/utils.py index 9eb1de1ea..3ed9bdd32 100644 --- a/detection_rules/utils.py +++ b/detection_rules/utils.py @@ -331,9 +331,10 @@ def make_git(*prefix_args) -> Optional[Callable]: return def git(*args, show_output=False): - method = subprocess.call if show_output else subprocess.check_output full_args = [git_exe] + prefix_args + [str(arg) for arg in args] - return method(full_args, encoding="utf-8").rstrip() + if show_output: + return subprocess.check_output(full_args, encoding="utf-8").rstrip() + return subprocess.check_call(full_args) return git