[node-patches] Change in ovirt-node[master]: setup: resolve rhn config file busy errors

jboggs at redhat.com jboggs at redhat.com
Fri Nov 16 17:28:06 UTC 2012


Joey Boggs has uploaded a new change for review.

Change subject: setup: resolve rhn config file busy errors
......................................................................

setup: resolve rhn config file busy errors

bz#874396

Signed-off-by: Joey Boggs <jboggs at redhat.com>
Change-Id: I7c345a36a29a9e72ccd7b9cb25fbf087ffcaa5e7
---
M scripts/rhn.py
1 file changed, 2 insertions(+), 6 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/89/9289/1

diff --git a/scripts/rhn.py b/scripts/rhn.py
index 57f9224..e8d8c6e 100755
--- a/scripts/rhn.py
+++ b/scripts/rhn.py
@@ -94,12 +94,8 @@
 
     logger.info("Registering to RHN account.....")
 
-    unmount_config("/etc/sysconfig/rhn/systemid")
-    unmount_config("/etc/sysconfig/rhn/up2date")
-    # regenerate up2date config
-    if os.path.exists("/etc/sysconfig/rhn/up2date"):
-        os.unlink("/etc/sysconfig/rhn/up2date")
-
+    remove_config("/etc/sysconfig/rhn/systemid")
+    remove_config("/etc/sysconfig/rhn/up2date")
     logged_args = list(args)
     remove_values_from_args = ["--password", "--proxyPassword"]
     for idx, arg in enumerate(logged_args):


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I7c345a36a29a9e72ccd7b9cb25fbf087ffcaa5e7
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Joey Boggs <jboggs at redhat.com>



More information about the node-patches mailing list