added web-team@ungleich.ch email for error
This commit is contained in:
parent
4f0bc72cc1
commit
c7b59ec762
3 changed files with 3 additions and 7 deletions
|
@ -3,7 +3,7 @@ from .base import *
|
||||||
ADMINS = (
|
ADMINS = (
|
||||||
('Nico Schottelius', 'nico.schottelius@ungleich.ch'),
|
('Nico Schottelius', 'nico.schottelius@ungleich.ch'),
|
||||||
('Raul Ascencio', 'raul.ascencio@yandex.com'),
|
('Raul Ascencio', 'raul.ascencio@yandex.com'),
|
||||||
('Tomislav Rupcic','tmslav@gmail.com'),
|
('Web team', 'web-team@ungleich.ch')
|
||||||
|
|
||||||
)
|
)
|
||||||
# ('Sanghee Kim', 'sanghee.kim@ungleich.ch'),
|
# ('Sanghee Kim', 'sanghee.kim@ungleich.ch'),
|
||||||
|
|
|
@ -212,18 +212,12 @@ class OpenNebulaManager():
|
||||||
return template_pool
|
return template_pool
|
||||||
|
|
||||||
def get_templates(self):
|
def get_templates(self):
|
||||||
print("TEMPLATES")
|
|
||||||
print(self._get_template_pool())
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
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 'public-' in template.name
|
||||||
]
|
]
|
||||||
print("TEMPLATES")
|
|
||||||
print(public_templates)
|
|
||||||
|
|
||||||
return public_templates
|
return public_templates
|
||||||
except ConnectionRefusedError:
|
except ConnectionRefusedError:
|
||||||
return []
|
return []
|
||||||
|
|
|
@ -48,6 +48,8 @@ class VirtualMachineTemplateSerializer(serializers.Serializer):
|
||||||
return manager.get_template(template_id=opennebula_id)
|
return manager.get_template(template_id=opennebula_id)
|
||||||
|
|
||||||
def get_disk_size(self, obj):
|
def get_disk_size(self, obj):
|
||||||
|
import pdb
|
||||||
|
pdb.set_trace()
|
||||||
template = obj.template
|
template = obj.template
|
||||||
disk_size = 0
|
disk_size = 0
|
||||||
for disk in template.disks:
|
for disk in template.disks:
|
||||||
|
|
Loading…
Reference in a new issue