[node-patches] Change in ovirt-node[master]: network: Fix udev information caching

fabiand at fedoraproject.org fabiand at fedoraproject.org
Fri Jun 28 10:49:48 UTC 2013


Fabian Deutsch has uploaded a new change for review.

Change subject: network: Fix udev information caching
......................................................................

network: Fix udev information caching

Previously the caching of the udev informations was done wrong, which
lead to problems in the UI (shoing no or outdated informations).
This patch fixes the caching behavior.

Change-Id: I56efb7bee409682ae102229f338f7cb8eb6b7cb0
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=978226
Signed-off-by: Fabian Deutsch <fabiand at fedoraproject.org>
---
M src/ovirt/node/utils/network.py
1 file changed, 2 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/22/16222/1

diff --git a/src/ovirt/node/utils/network.py b/src/ovirt/node/utils/network.py
index 3c9e710..30f3d09 100644
--- a/src/ovirt/node/utils/network.py
+++ b/src/ovirt/node/utils/network.py
@@ -108,11 +108,11 @@
         return self._cached_device
 
     def __get_property(self, name):
-        return self._cached_device.get_property(name) if self.exists() \
+        return self._udev_device.get_property(name) if self.exists() \
             else None
 
     def exists(self):
-        return self._cached_device is not None
+        return self._udev_device is not None
 
     @property
     def name(self):


-- 
To view, visit http://gerrit.ovirt.org/16222
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I56efb7bee409682ae102229f338f7cb8eb6b7cb0
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Fabian Deutsch <fabiand at fedoraproject.org>



More information about the node-patches mailing list