[node-patches] Change in ovirt-node[master]: Only look for difference if path exists

fabiand at fedoraproject.org fabiand at fedoraproject.org
Tue Dec 11 20:09:34 UTC 2012


Fabian Deutsch has uploaded a new change for review.

Change subject: Only look for difference if path exists
......................................................................

Only look for difference if path exists

Change-Id: I0c4cac7fc88e5e1d18f60faf3b9a5568820377ad
Signed-off-by: Fabian Deutsch <fabiand at fedoraproject.org>
---
M scripts/tui/src/ovirt/node/plugins/__init__.py
1 file changed, 2 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/91/9891/1

diff --git a/scripts/tui/src/ovirt/node/plugins/__init__.py b/scripts/tui/src/ovirt/node/plugins/__init__.py
index 2560fdc..453a680 100644
--- a/scripts/tui/src/ovirt/node/plugins/__init__.py
+++ b/scripts/tui/src/ovirt/node/plugins/__init__.py
@@ -215,8 +215,9 @@
         LOGGER.debug("Request to apply model changes")
         real_changes = {}
         if self._changes:
+            model = self.model()
             for key, value in self._changes.items():
-                if value == self.model()[key]:
+                if key in model and value == model[key]:
                     LOGGER.debug(("Skipping pseudo-change of '%s', value " + \
                                   "did not change") % key)
                 else:


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I0c4cac7fc88e5e1d18f60faf3b9a5568820377ad
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