Skip to content

Commit d002521

Browse files
authored
Merge branch 'main' into fix/scenario-plugins-network-chaos-ng-variable
2 parents 09a9bf2 + 626e203 commit d002521

File tree

8 files changed

+414
-912
lines changed

8 files changed

+414
-912
lines changed

.pre-commit-config.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
repos:
2+
- repo: local
3+
hooks:
4+
- id: check-license-header
5+
name: Check Apache 2.0 license header
6+
language: python
7+
entry: python scripts/check_license.py
8+
types: [python]
9+
exclude: ^tests/|/test_|CI/

krkn/rollback/handler.py

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
#!/usr/bin/env python
2+
#
3+
# Copyright 2025 The Krkn Authors
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
117
from __future__ import annotations
218

319
import logging
@@ -132,8 +148,8 @@ def execute_rollback_version_files(
132148
:param ignore_auto_rollback_config: Flag to ignore auto rollback configuration. Will be set to True for manual execute-rollback calls.
133149
"""
134150
if not ignore_auto_rollback_config and RollbackConfig().auto is False:
135-
logger.warning(f"Auto rollback is disabled, skipping execution for run_uuid={run_uuid or '*'}, scenario_type={scenario_type or '*'}")
136-
return
151+
logger.warning(f"Auto rollback is disabled, skipping execution for run_uuid={run_uuid or '*'}, scenario_type={scenario_type or '*'}")
152+
return
137153

138154
# Get the rollback versions directory
139155
version_files = RollbackConfig.search_rollback_version_files(run_uuid, scenario_type)

0 commit comments

Comments
 (0)