devices: always pass persistent parameter to device-list-attached event

This commit is contained in:
Marek Marczykowski-Górecki 2017-07-27 15:24:14 +02:00
parent 17324b7ac7
commit a407e34931
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -254,7 +254,8 @@ class DeviceCollection(object):
def attached(self):
'''List devices which are (or may be) attached to this vm '''
attached = self._vm.fire_event('device-list-attached:' + self._bus)
attached = self._vm.fire_event('device-list-attached:' + self._bus,
persistent=None)
if attached:
return [dev for dev, _ in attached]