---
 .../spacewalk-create-channel/spacewalk-create-channel          | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git 
a/client/tools/spacewalk-remote-utils/spacewalk-create-channel/spacewalk-create-channel
 
b/client/tools/spacewalk-remote-utils/spacewalk-create-channel/spacewalk-create-channel
index 1ffbf27..b5f876b 100755
--- 
a/client/tools/spacewalk-remote-utils/spacewalk-create-channel/spacewalk-create-channel
+++ 
b/client/tools/spacewalk-remote-utils/spacewalk-create-channel/spacewalk-create-channel
@@ -12,6 +12,7 @@ import getopt
 import sys
 import getpass
 from xmlrpclib import Server
+from xmlrpclib import Fault
 import string
 import os
 from os import path
@@ -170,7 +171,14 @@ def main():
    client = Server(proto + "://" + server + "/rpc/api")
    if clone and client.api.getVersion() < 5.1:
       print "--clone cannot be used with a Satellite version older than 5.1"
-   auth = client.auth.login(user, password)
+   try:
+      auth = client.auth.login(user, password)
+   except Fault:
+      excInfo = sys.exc_info()[1]
+      print "\n %s " % excInfo.faultString
+      sys.exit(1)
+      
+       
 
    skiplist = []
    if options.skiplist:
-- 
1.8.3.4 (Apple Git-47)

_______________________________________________
Spacewalk-devel mailing list
Spacewalk-devel@redhat.com
https://www.redhat.com/mailman/listinfo/spacewalk-devel

Reply via email to