From a76f70da99ccd8f97820eed9826b2b46f5899752 Mon Sep 17 00:00:00 2001 From: David Lehman Date: Fri, 6 Mar 2015 12:04:01 -0600 Subject: [PATCH 02/19] Update event sync passthrough setting as late as possible. In many cases self.device did not exist when the device was set, so passthrough would be True. By updating it right before create, we can reflect the fact that the device now exists. --- blivet/formats/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/blivet/formats/__init__.py b/blivet/formats/__init__.py index 5c87bb4..201b1a0 100644 --- a/blivet/formats/__init__.py +++ b/blivet/formats/__init__.py @@ -402,6 +402,7 @@ class DeviceFormat(ObjectID): synchronizer themselves. """ if self.createGeneratesEvent: + self.updateSyncPassthrough() self._setCreateEventInfo() self.eventSync.creating = True @@ -456,6 +457,7 @@ class DeviceFormat(ObjectID): def _destroy(self, **kwargs): notify = kwargs.pop("notify", True) if notify and self.destroyGeneratesEvent: + self.updateSyncPassthrough() self._setDestroyEventInfo() self.eventSync.destroying = True -- 1.9.3