[node-patches] Change in ovirt-node[master]: Now function disable_firstboot will discard the info about t...

boh.ricky at gmail.com boh.ricky at gmail.com
Thu Aug 8 05:11:04 UTC 2013


hai bo has uploaded a new change for review.

Change subject: Now function disable_firstboot will discard the info about the partition  size info. This patch is for fixing the problem.
......................................................................

Now function disable_firstboot will discard the info about the partition
 size info. This patch is for fixing the problem.

Change-Id: I53392ee9e290d84b273fc18bdc1a4b04295907d9
Signed-off-by: boh.ricky <boh.ricky at gmail.com>
---
M src/ovirtnode/ovirtfunctions.py
1 file changed, 1 insertion(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/03/17803/1

diff --git a/src/ovirtnode/ovirtfunctions.py b/src/ovirtnode/ovirtfunctions.py
index 7b0d41e..791b926 100644
--- a/src/ovirtnode/ovirtfunctions.py
+++ b/src/ovirtnode/ovirtfunctions.py
@@ -355,6 +355,7 @@
 
 def disable_firstboot():
     if os.path.ismount("/config"):
+        aug.load()
         aug.set("/files/etc/default/ovirt/OVIRT_FIRSTBOOT", "0")
         aug.set("/files/etc/default/ovirt/OVIRT_INSTALL", "0")
         aug.set("/files/etc/default/ovirt/OVIRT_INIT", '""')


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I53392ee9e290d84b273fc18bdc1a4b04295907d9
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: hai bo <boh.ricky at gmail.com>



More information about the node-patches mailing list