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.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/kolla/template/methods.py b/kolla/template/methods.py
index 66c5dcfa9..fb470a65f 100644
--- a/kolla/template/methods.py
+++ b/kolla/template/methods.py
@@ -88,6 +88,9 @@ def handle_repos(context, reponames, mode):
else:
raise KeyError
+ if not isinstance(reponames, list):
+ raise TypeError("First argument should be a list of repositories")
+
repofile = os.path.dirname(os.path.realpath(__file__)) + '/repos.yaml'
with open(repofile, 'r') as repos_file:
repo_data = {}