From 4f0bc72cc1c2e8ddeda008390cfca9e9a3cc1e0a Mon Sep 17 00:00:00 2001 From: Levi Date: Sat, 13 May 2017 17:21:07 -0500 Subject: [PATCH] debugging templates --- opennebula_api/models.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/opennebula_api/models.py b/opennebula_api/models.py index eb6d64a2..02ad1d9a 100644 --- a/opennebula_api/models.py +++ b/opennebula_api/models.py @@ -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 []