From: Ondrej Lichtner <olichtne(a)redhat.com>
References to VirtualDevice instances are still available through the
result objects after recipe execution has finished. Attempting to access
properties (e.g. to print a summary of the recipe execution) of these
objects results in exceptions being raised.
Makring the device as 'deleted' fixes the issue.
Signed-off-by: Ondrej Lichtner <olichtne(a)redhat.com>
lnst/Devices/VirtualDevice.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/lnst/Devices/VirtualDevice.py b/lnst/Devices/VirtualDevice.py
index de2db9c..7eb3244 100644
@@ -97,3 +97,4 @@ class VirtualDevice(RemoteDevice):
domain_ctl = self._machine.get_domain_ctl()
+ self.deleted = True