[node-patches] Change in ovirt-node[master]: rhn_page: add validation for rhntype

dougsland at redhat.com dougsland at redhat.com
Tue Dec 9 19:02:53 UTC 2014


Douglas Schilling Landgraf has uploaded a new change for review.

Change subject: rhn_page: add validation for rhntype
......................................................................

rhn_page: add validation for rhntype

Avoid None type error.

Change-Id: Ib9cfaa5e29baff63b806812b3bcedc5057f38ec4
Signed-off-by: Douglas Schilling Landgraf <dougsland at redhat.com>
---
M src/ovirt/node/setup/rhn/rhn_page.py
1 file changed, 3 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/32/36032/1

diff --git a/src/ovirt/node/setup/rhn/rhn_page.py b/src/ovirt/node/setup/rhn/rhn_page.py
index 35d7d64..0004605 100644
--- a/src/ovirt/node/setup/rhn/rhn_page.py
+++ b/src/ovirt/node/setup/rhn/rhn_page.py
@@ -190,6 +190,9 @@
                            "guests subscriptions for your guests.")
             else:
                 rhntype = cfg["rhntype"]
+                if rhntype is None:
+                    rhntype = ""
+
                 if "satellite" in rhntype:
                     rhntype = rhntype.title()
                 else:


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib9cfaa5e29baff63b806812b3bcedc5057f38ec4
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Douglas Schilling Landgraf <dougsland at redhat.com>



More information about the node-patches mailing list