[node-patches] Change in ovirt-node[master]: resync rhn profile in cases where reregistering fails to sho...

jboggs at redhat.com jboggs at redhat.com
Mon Oct 15 17:38:58 UTC 2012


Joey Boggs has uploaded a new change for review.

Change subject: resync rhn profile in cases where reregistering fails to show virt guests
......................................................................

resync rhn profile in cases where reregistering fails to show virt guests

rhbz#864352

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


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/78/8578/1

diff --git a/scripts/rhn.py b/scripts/rhn.py
index d88111e..f3e845c 100755
--- a/scripts/rhn.py
+++ b/scripts/rhn.py
@@ -393,6 +393,9 @@
         return False
     if reg_rc == 0 and not False:
         logger.info("RHN Registration Successful")
+        # sync profile if reregistering, fixes problem with virt guests not showing
+        subprocess_closefds("rhn-profile-sync", shell=True, stdout=PIPE,
+                                  stderr=STDOUT)
         return True
     elif reg_rc > 0:
         logger.debug(reg_rc)


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

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