Skip to content

Commit 70807a0

Browse files
authored
Merge pull request #67 from grycap/devel
Fix #66
2 parents b8f7130 + dc8a847 commit 70807a0

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

app/appdb.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,11 @@ def check_supported_VOs(site, vo):
6464
return True
6565

6666
if 'provider:image' in site:
67-
for os_tpl in site['provider:image']:
67+
if isinstance(site['provider:image'], list):
68+
images = site['provider:image']
69+
else:
70+
images = [site['provider:image']]
71+
for os_tpl in images:
6872
if '@voname' in os_tpl and vo in os_tpl['@voname']:
6973
return True
7074
return False

0 commit comments

Comments
 (0)