[node-patches] Change in ovirt-node[master]: Call RHN virtualization profile update directly
jboggs at redhat.com
jboggs at redhat.com
Wed May 8 19:49:19 UTC 2013
Joey Boggs has uploaded a new change for review.
Change subject: Call RHN virtualization profile update directly
......................................................................
Call RHN virtualization profile update directly
rhbz#960314
Signed-off-by: Joey Boggs <jboggs at redhat.com>
Change-Id: Ibbb3bf51a28fa81430ff147973d2ed412857c8eb
---
M src/ovirt_config_setup/rhn.py
1 file changed, 3 insertions(+), 2 deletions(-)
git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/00/14600/1
diff --git a/src/ovirt_config_setup/rhn.py b/src/ovirt_config_setup/rhn.py
index ae3f3f2..fca9e0c 100755
--- a/src/ovirt_config_setup/rhn.py
+++ b/src/ovirt_config_setup/rhn.py
@@ -415,8 +415,9 @@
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)
+ sys.path.append("/usr/share/rhn")
+ from virtualization import support
+ support.refresh(True)
return True
elif reg_rc > 0:
logger.debug(reg_rc)
--
To view, visit http://gerrit.ovirt.org/14600
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ibbb3bf51a28fa81430ff147973d2ed412857c8eb
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