client/rhel/rhn-client-tools/src/bin/rhnreg_ks.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 4bc7167745899d37fcf8a05aa4d94c60cd934a40
Author: Jan Pazdziora <jpazdziora(a)redhat.com>
Date: Fri Mar 26 14:02:59 2010 +0100
Add AuthenticationOrAccountCreationError to the list of errors that we catch
"nicely".
Since we do not check for login/password combination with
reserveUser/registerUser anymore, we can also get
AuthenticationOrAccountCreationError now for bad login/password.
For this error, we also want to just output errmsg and not let rhncli
do its handling.
diff --git a/client/rhel/rhn-client-tools/src/bin/rhnreg_ks.py
b/client/rhel/rhn-client-tools/src/bin/rhnreg_ks.py
index fd168a0..d732c9e 100755
--- a/client/rhel/rhn-client-tools/src/bin/rhnreg_ks.py
+++ b/client/rhel/rhn-client-tools/src/bin/rhnreg_ks.py
@@ -136,7 +136,8 @@ class RegisterKsCli(rhncli.RhnCli):
self.options.password, profilename, other = other)
except (up2dateErrors.AuthenticationTicketError,
up2dateErrors.RhnUuidUniquenessError,
- up2dateErrors.CommunicationError), e:
+ up2dateErrors.CommunicationError,
+ up2dateErrors.AuthenticationOrAccountCreationError), e:
print "%s" % e.errmsg
sys.exit(1)
Show replies by date