aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--kolla_ansible/utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/kolla_ansible/utils.py b/kolla_ansible/utils.py
index 3f1649048..316ba68dd 100644
--- a/kolla_ansible/utils.py
+++ b/kolla_ansible/utils.py
@@ -173,6 +173,6 @@ def run_command(executable: str,
if quiet:
kwargs["stdout"] = subprocess.DEVNULL
kwargs["stderr"] = subprocess.DEVNULL
- subprocess.run(full_cmd, shell=False, **kwargs) # nosec
+ subprocess.run(full_cmd, check=True, shell=False, **kwargs) # nosec
else:
- subprocess.run(full_cmd, shell=False, **kwargs) # nosec
+ subprocess.run(full_cmd, check=True, shell=False, **kwargs) # nosec