parent
5a7d4d67f4
commit
ee2e09c8a7
|
@ -172,7 +172,7 @@ class OCCIApplication(occi_wsgi.Application, wsgi.Application):
|
|||
continue
|
||||
|
||||
os_template = os_mixins.OsTemplate(
|
||||
term=img['name'],
|
||||
term=img['name'].strip().replace(' ', '_'),
|
||||
scheme=template_schema,
|
||||
os_id=img['id'],
|
||||
related=[infrastructure.OS_TEMPLATE],
|
||||
|
@ -197,7 +197,7 @@ class OCCIApplication(occi_wsgi.Application, wsgi.Application):
|
|||
|
||||
for itype in os_flavours:
|
||||
resource_template = os_mixins.ResourceTemplate(
|
||||
term=itype,
|
||||
term=itype.strip().replace(' ', '_'),
|
||||
scheme=template_schema,
|
||||
related=[infrastructure.RESOURCE_TEMPLATE],
|
||||
title='This is an openstack ' + itype + ' flavor.',
|
||||
|
@ -232,7 +232,7 @@ class OCCIApplication(occi_wsgi.Application, wsgi.Application):
|
|||
for group in groups:
|
||||
if group['name'] not in excld_grps:
|
||||
sec_mix = os_mixins.UserSecurityGroupMixin(
|
||||
term=group['name'],
|
||||
term=group['name'].strip().replace(' ', '_'),
|
||||
scheme=sec_grp,
|
||||
related=[os_addon.SEC_GROUP],
|
||||
attributes=None,
|
||||
|
|
Loading…
Reference in New Issue