[node-patches] Change in ovirt-node[ovirt-3.6]: rhn_model: fix pep8 complains

Code Review gerrit at ovirt.org
Fri Jan 13 21:03:48 UTC 2017


>From Douglas Schilling Landgraf <dougsland at redhat.com>:

Douglas Schilling Landgraf has uploaded a new change for review.

Change subject: rhn_model: fix pep8 complains
......................................................................

rhn_model: fix pep8 complains

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


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/93/70393/1

diff --git a/src/ovirt/node/setup/rhn/rhn_model.py b/src/ovirt/node/setup/rhn/rhn_model.py
index c12b8c0..c0974d4 100755
--- a/src/ovirt/node/setup/rhn/rhn_model.py
+++ b/src/ovirt/node/setup/rhn/rhn_model.py
@@ -520,40 +520,36 @@
                 if cfg["activationkey"]:
                     if not cfg["org"]:
                         del tx[0]
-                        tx.extend([RaiseError(
-                                        "Registration to Satellite "
-                                        "6 with activation key requires "
-                                        "an organization to be set")])
+                        tx.extend([RaiseError("Registration to Satellite "
+                                              "6 with activation key requires"
+                                              " an organization to be set")])
                         return tx
                     if cfg["environment"]:
                         del tx[0]
-                        tx.extend([RaiseError(
-                                        "Registration to Satellite 6 with "
-                                        "activation key do not allow "
-                                        "environments to be specified")])
+                        tx.extend([RaiseError("Registration to Satellite 6 "
+                                              "with activation key do not "
+                                              "allow environments to be"
+                                              "specified")])
                         return tx
                     if cfg["username"] or password:
                         del tx[0]
-                        tx.extend([RaiseError(
-                                        "Registration to Satellite 6 with an "
-                                        "activation key do not require "
-                                        "credentials")])
+                        tx.extend([RaiseError("Registration to Satellite 6 "
+                                              "with an activation key do not"
+                                              " require credentials")])
                         return tx
                 else:
                     if not cfg["org"] or not cfg["environment"]:
                         del tx[0]
-                        tx.extend([RaiseError(
-                                        "Registration to Satellite 6 requires "
-                                        "an organization and environment to "
-                                        "be set")])
+                        tx.extend([RaiseError("Registration to Satellite 6 "
+                                              "requires an organization and"
+                                              "environment to be set")])
                         return tx
 
                     if not cfg["username"] or not password:
                         del tx[0]
-                        tx.extend([RaiseError(
-                                        "Registration to Satellite 6 without "
-                                        "an activation key requires user "
-                                        "credentials")])
+                        tx.extend([RaiseError("Registration to Satellite 6 "
+                                              "without an activation key "
+                                              "requires user credentials")])
                         return tx
 
             if cfg["proxy"]:


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

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


More information about the node-patches mailing list