client/rhel/rhn-client-tools/src/bin/spacewalk-channel.py | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
New commits:
commit 3d3a4d9a4a53ca24d2650bdc9ed4813a09bcb72d
Author: Milan Zazrivec <mzazrivec(a)redhat.com>
Date: Wed Aug 10 12:03:00 2011 +0200
702084 - always print trailing newline for error messages
diff --git a/client/rhel/rhn-client-tools/src/bin/spacewalk-channel.py
b/client/rhel/rhn-client-tools/src/bin/spacewalk-channel.py
index bacb619..359d5fc 100644
--- a/client/rhel/rhn-client-tools/src/bin/spacewalk-channel.py
+++ b/client/rhel/rhn-client-tools/src/bin/spacewalk-channel.py
@@ -92,8 +92,7 @@ def get_available_channels(user, password):
try:
key = client.auth.login(user, password)
except xmlrpclib.Fault, exc:
- sys.stderr.write("Error during client authentication: %s" %
exc.faultString)
- sys.exit(1)
+ systemExit(1, "Error during client authentication: %s" %
exc.faultString)
system_id = re.sub('^ID-', '',
rpclib.xmlrpclib.loads(up2dateAuth.getSystemId())[0][0]['system_id'])
result = []
Show replies by date