Finalize image management refactoring and auto install appliance if possible

This commit is contained in:
grossmj committed 2021-10-10 17:35:11 +10:30
1 parent b683659d21
commit bc36d95060
10 files changed
+281 -36

No files matched your search

+10
View File
@@ -68,6 +68,16 @@ class Appliance:
def symbol(self, new_symbol):
self._data["symbol"] = new_symbol
@property
def type(self):
if "iou" in self._data:
return "iou"
elif "dynamips" in self._data:
return "dynamips"
else:
return "qemu"
def asdict(self):
"""
Appliance data (a hash)