Fixed bug where we need to fetch VMs whose names strictly begin with 'public-'

This commit is contained in:
M.Ravi 2017-07-26 19:41:05 +02:00
parent c92960a3e6
commit bc2ad28969

View file

@ -325,7 +325,7 @@ class OpenNebulaManager():
public_templates = [ public_templates = [
template template
for template in self._get_template_pool() for template in self._get_template_pool()
if 'public-' in template.name if template.name.startswith('public-')
] ]
return public_templates return public_templates
except ConnectionRefusedError: except ConnectionRefusedError: