Return computer symbol if an appliance don't have symbol

Fix #1087
This commit is contained in:
Julien Duponchelle 2017-07-20 15:13:58 +02:00
parent 27f733736e
commit 8354beaa86
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8

View File

@ -79,7 +79,7 @@ class Appliance:
"name": self._data["name"],
"default_name_format": self._data.get("default_name_format", "{name}-{0}"),
"category": ID_TO_CATEGORY[self._data["category"]],
"symbol": self._data["symbol"],
"symbol": self._data.get("symbol", ":/symbols/computer.svg"),
"compute_id": self.compute_id,
"builtin": self._builtin
}