Merge pull request #239 from levivm/opennebula_api

debugging templates
This commit is contained in:
Levi Velázquez 2017-05-13 17:21:50 -05:00 committed by GitHub
commit ddeb3b5575

View file

@ -212,12 +212,18 @@ class OpenNebulaManager():
return template_pool
def get_templates(self):
print("TEMPLATES")
print(self._get_template_pool())
try:
public_templates = [
template
for template in self._get_template_pool()
if 'public-' in template.name
]
print("TEMPLATES")
print(public_templates)
return public_templates
except ConnectionRefusedError:
return []