[node-patches] Change in ovirt-node[ovirt-3.5]: Set rhn_type in rhn_autoinstall if it's None so it works on EL7

fabiand at redhat.com fabiand at redhat.com
Fri Oct 9 16:50:54 UTC 2015


Fabian Deutsch has uploaded a new change for review.

Change subject: Set rhn_type in rhn_autoinstall if it's None so it works on EL7
......................................................................

Set rhn_type in rhn_autoinstall if it's None so it works on EL7

The EL7 RHN classic v. subscription-manager logic assumes that
rhn_type will be set in order to differentiate. It wasn't. Set it
if it's empty so we correctly run subscription-manager instead of
rhnreg_ks

Change-Id: I3f7e20f4420c0ce87ca6c14e58e15b2e50f0ffab
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1265176
Signed-off-by: Ryan Barry <rbarry at redhat.com>
---
M plugins/rhn_autoinstall.py
1 file changed, 2 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/64/47164/1

diff --git a/plugins/rhn_autoinstall.py b/plugins/rhn_autoinstall.py
index 42176d8..d08c239 100644
--- a/plugins/rhn_autoinstall.py
+++ b/plugins/rhn_autoinstall.py
@@ -58,6 +58,8 @@
     rhn_proxypassword = _functions.OVIRT_VARS["OVIRT_RHN_PROXYPASSWORD"] \
                         if "OVIRT_RHN_PROXYPASSWORD" in _functions.OVIRT_VARS \
                         else ""
+
+    cfg['rhntype'] = cfg['rhntype'] or 'rhn'
     effective_model = Changeset({
         "rhn.rhntype": cfg['rhntype'],
         "rhn.url": cfg['url'],


-- 
To view, visit https://gerrit.ovirt.org/47164
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I3f7e20f4420c0ce87ca6c14e58e15b2e50f0ffab
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: ovirt-3.5
Gerrit-Owner: Fabian Deutsch <fabiand at redhat.com>



More information about the node-patches mailing list