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
1 changed files with 4 additions and 4 deletions

View File

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