[node-patches] Change in ovirt-node[master]: Make sure we don't reuse Augeas objects in ovirt.node.config
rbarry at redhat.com
rbarry at redhat.com
Tue Aug 6 18:27:08 UTC 2013
Ryan Barry has uploaded a new change for review.
Change subject: Make sure we don't reuse Augeas objects in ovirt.node.config
......................................................................
Make sure we don't reuse Augeas objects in ovirt.node.config
If multiple admin sessions were opened, changed values which
relied on Augeas (DNS and NTP settings, principally) did not
reflect changes between them without quitting the UI. Force a
reload of cached Augeas values so it properly updates.
Change-Id: I3c91839c4dca91fed47d457bdb8a1f712c172822
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=985228
Signed-off-by: Ryan Barry <rbarry at redhat.com>
---
M src/ovirt/node/config/network.py
1 file changed, 1 insertion(+), 0 deletions(-)
git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/22/17722/1
diff --git a/src/ovirt/node/config/network.py b/src/ovirt/node/config/network.py
index 15a5bf3..db35690 100644
--- a/src/ovirt/node/config/network.py
+++ b/src/ovirt/node/config/network.py
@@ -175,6 +175,7 @@
"""Get or set some servers
"""
aug = Augeas()
+ aug.force_reload()
servers = []
for path in aug.match(augpath):
--
To view, visit http://gerrit.ovirt.org/17722
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I3c91839c4dca91fed47d457bdb8a1f712c172822
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