Fixed image removal on service pool group

This commit is contained in:
Adolfo Gómez García 2016-07-11 12:43:22 +02:00
parent 50e368ee7a
commit 622e8629ff

View File

@ -98,7 +98,7 @@ class ServicesPoolGroups(ModelHandler):
'priority': item.priority, 'priority': item.priority,
'name': item.name, 'name': item.name,
'comments': item.comments, 'comments': item.comments,
'image_id': item.image.uuid, 'image_id': item.image.uuid if item.image is not None else None,
} }
def item_as_dict_overview(self, item): def item_as_dict_overview(self, item):
@ -107,5 +107,5 @@ class ServicesPoolGroups(ModelHandler):
'priority': item.priority, 'priority': item.priority,
'name': item.name, 'name': item.name,
'comments': item.comments, 'comments': item.comments,
'thumb': item.image.thumb64, 'thumb': item.thumb64,
} }