[node-patches] Change in ovirt-node[ovirt-3.6]: rhn: Fix import

fabiand at redhat.com fabiand at redhat.com
Thu Sep 3 07:11:59 UTC 2015


Fabian Deutsch has uploaded a new change for review.

Change subject: rhn: Fix import
......................................................................

rhn: Fix import

Change-Id: Iabf2ca64861f6f7922424067adb74ca436d6fd6b
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1259499
Signed-off-by: Fabian Deutsch <fabiand at fedoraproject.org>
(cherry picked from commit a59720bbe70335e9a71f65186f473253b330186d)
---
M plugins/rhn_autoinstall.py
1 file changed, 2 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/95/45695/1

diff --git a/plugins/rhn_autoinstall.py b/plugins/rhn_autoinstall.py
index e6821cd..9a902af 100644
--- a/plugins/rhn_autoinstall.py
+++ b/plugins/rhn_autoinstall.py
@@ -24,7 +24,7 @@
 from ovirt.node.setup.rhn import rhn_model
 import ovirtnode.ovirtfunctions as _functions
 from ovirt.node.plugins import Changeset
-import system
+import sys
 
 RHSM_CONF = "/etc/rhsm/rhsm.conf"
 SYSTEMID = "/etc/sysconfig/rhn/systemid"
@@ -76,7 +76,7 @@
     if cfg["username"] and cfg["activationkey"]:
         print ("Activationkey and username should not be specified together "
                "not doing anything")
-        system.exit(2)
+        sys.exit(2)
     if cfg['username'] and rhn_password or cfg['activationkey']:
         tx = rhn.transaction(password=rhn_password, \
                              proxypass=rhn_proxypassword)


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

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



More information about the node-patches mailing list