[node-patches] Change in ovirt-node[master]: Set plugin.__changes to Changeset on reset, not dict
rbarry at redhat.com
rbarry at redhat.com
Thu Nov 20 14:44:42 UTC 2014
Ryan Barry has uploaded a new change for review.
Change subject: Set plugin.__changes to Changeset on reset, not dict
......................................................................
Set plugin.__changes to Changeset on reset, not dict
Setting it to an empty dict on on_ui_reset is unnecessary when
Changeset is superset of dict, and some workflows rely on
__changes being a changeset...
Change-Id: I2e47c72686eda2dbf5e7d1657675ab7fe5469e0e
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1166036
Signed-off-by: Ryan Barry <rbarry at redhat.com>
---
M src/ovirt/node/plugins.py
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/04/35404/1
diff --git a/src/ovirt/node/plugins.py b/src/ovirt/node/plugins.py
index a66a1d4..0ea70c8 100644
--- a/src/ovirt/node/plugins.py
+++ b/src/ovirt/node/plugins.py
@@ -438,7 +438,7 @@
"""
changes = self.pending_changes(False)
self.logger.debug("Request to discard model changes: %s" % changes)
- self.__changes = {}
+ self.__changes = Changeset()
def __effective_changes(self):
"""Calculates the effective changes, so changes which change the
--
To view, visit http://gerrit.ovirt.org/35404
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I2e47c72686eda2dbf5e7d1657675ab7fe5469e0e
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Ryan Barry <rbarry at redhat.com>
More information about the node-patches
mailing list