aboutsummaryrefslogtreecommitdiff
path: root/kolla/template/methods.py
diff options
context:
space:
mode:
Diffstat (limited to 'kolla/template/methods.py')
-rw-r--r--kolla/template/methods.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/kolla/template/methods.py b/kolla/template/methods.py
index 6747504fa..e9edbfeb0 100644
--- a/kolla/template/methods.py
+++ b/kolla/template/methods.py
@@ -11,6 +11,8 @@
# limitations under the License.
import os
+import typing as t
+
import yaml
from jinja2 import pass_context
@@ -150,3 +152,7 @@ def handle_repos(context, reponames, mode):
commands = "RUN %s" % commands
return commands
+
+
+def raise_error(msg: str) -> t.NoReturn:
+ raise Exception(msg)