From 311ed986d6ae38e0846f4d4495c97a1393976d80 Mon Sep 17 00:00:00 2001 From: mike seibel Date: Wed, 4 Sep 2024 08:31:56 -0700 Subject: [PATCH] exit error status --- endorsement/management/commands/reconcile_shared_drives.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/endorsement/management/commands/reconcile_shared_drives.py b/endorsement/management/commands/reconcile_shared_drives.py index 648981f9..ac6f85c1 100644 --- a/endorsement/management/commands/reconcile_shared_drives.py +++ b/endorsement/management/commands/reconcile_shared_drives.py @@ -1,6 +1,7 @@ # Copyright 2024 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 import logging +import sys from django.core.management.base import BaseCommand @@ -40,3 +41,4 @@ def handle(self, *args, **options): logger.error( "Reconcile shared drives failed: {}".format(ex), exc_info=True, stack_info=True) + sys.exit(1)