diff --git a/src/bos/operators/base.py b/src/bos/operators/base.py index ccc819a4..69abd96a 100644 --- a/src/bos/operators/base.py +++ b/src/bos/operators/base.py @@ -162,9 +162,11 @@ def _update_database(self, components: List[dict], additional_fields: dict=None) for component in components: patch = { 'id': component['id'], - 'enabled': component['enabled'], # Enabled state overwrites previous state 'error': component['error'] # New error, or clearing out old error } + # Allow operators to disable components. + if not component['enabled']: + patch['enabled'] = component['enabled'] if self.name: last_action_data = { 'action': self.name,