a mi @sddlZejdddZeeds(eje_ejZddlmZddlm Z ddl Z e j dde j dde _ zdd l m ZWnFeyzdd lmZWn"eyGd d d eZYn0Yn0Gd ddeZGdddeZzddl mZWn>ey2zddlmZWney,eZYn0Yn0GdddeZGdddeZGdddeZGdddeZGdddeZGdddeZGdddeZGd d!d!eeZGd"d#d#eZGd$d%d%eeZGd&d'd'eZGd(d)d)eZ Gd*d+d+eeZ!Gd,d-d-eeZ"Gd.d/d/eeZ#Gd0d1d1eZ$Gd2d3d3eeZ%Gd4d5d5eZ&Gd6d7d7eZ'Gd8d9d9eZ(Gd:d;d;eZ)Gdd?d?eZ+Gd@dAdAeZ,GdBdCdCeZ-GdDdEdEeZ.GdFdGdGeZ/dS)HNzrhn-client-toolsT)fallbackugettext)ustr) up2dateLog) YumBaseError)Errorc@s$eZdZddZddZddZdS) PmBaseErrorcCs ||_dSNvalueselferrmsgr@/usr/lib/python3.9/site-packages/up2date_client/up2dateErrors.py__init__*szPmBaseError.__init__cCsttd|jj|fdS)Nclass %s has no attribute '%s')AttributeError_ __class____name__rnamerrr __getattr__,szPmBaseError.__getattr__cCs"|dvr||jd<n ||j|<dS)N)rr r )__dict__rrr rrr __setattr__.s zPmBaseError.__setattr__N)r __module__ __qualname__rrrrrrrr )sr c@s4eZdZdZdZddZddZddZd d Zd S) rzbase class for errorscCs2t|}t||d|j||_t|_dS)Nz rhn-plugin: )rr rpremsgr rZinitLoglogr rrrr8s zError.__init__cCs|j|j|jSr )r"Zlog_mer rrrr__repr__>szError.__repr__cCsT|dkr|jSttdr$t||S||jvr8|j|Sttd|jj|fdS)G Spacewalk backend still use errmsg, let have errmsg as alias to value rrrN) r hasattrr rrrrrrrrrrrBs    zError.__getattr__cCs<|dkr||jd<n$ttdr.t|||n ||j|<dS)r%rr rN)rr&r rrrrrrPs   zError.__setattr__N) rrr__doc__r!rr$rrrrrrr5s rc@s eZdZdS)DebAndSuseRepoErrorNrrrrrrrr([sr() RepoErrorc@s eZdZdS)RhnServerExceptionNr)rrrrr+gsr+c@seZdZdZedZdS) PasswordErrorz@Raise when the server responds with that a password is incorrectz!Password error. The message was: Nrrrr'rr!rrrrr,jsr,c@seZdZdZedZdS)CommunicationErrorzDIndicates a problem doing xml-rpc http communication with the serverz2Error communicating with server. The message was: Nr-rrrrr.osr.c@seZdZdZedZdS)FileNotFoundErrorzR Raise when a package or header that is requested returns a 404 error codezFile Not Found: Nr-rrrrr/tsr/c@seZdZdZedZdS) DelayErrorzO Raise when the expected response from a xml-rpc call exceeds a timeoutz+Delay error from server. The message was: Nr-rrrrr0{sr0c@seZdZddZddZdS) NoLogErrorcCst|}|j||_dSr )rr!r rmsgrrrrszNoLogError.__init__cCs|jSr r r#rrrr$szNoLogError.__repr__N)rrrrr$rrrrr1sr1c@s eZdZdS) AbuseErrorNr)rrrrr4sr4c@s eZdZdS)AuthenticationTicketErrorNr)rrrrr5sr5c@s eZdZdS)AuthenticationErrorNr)rrrrr6sr6c@seZdZdZedZdS)ValidationErrorz1indicates an error during server input validationz!Error validating data at server: Nr-rrrrr7sr7c@s eZdZdS)InvalidRegistrationNumberErrorNr)rrrrr8sr8c@s$eZdZddZddZddZdS)RegistrationDeniedErrorcCst||dSr r+rchangeExplanationr#rrrrsz RegistrationDeniedError.__init__cCs|jSr r r#rrrr$sz RegistrationDeniedError.__repr__cCstdS)Nz CloudLinux Network Classic is not supported. To register with CloudLinux Subscription Management please run: subscription-manager register --auto-attach Get more information at www.cloudlinux.com )rr#rrrr;sz)RegistrationDeniedError.changeExplanationNrrrrr$r;rrrrr9sr9c@seZdZdZdS)NoBaseChannelErrorz/No valid base channel was found for this systemNrrrr'rrrrr=sr=c@s eZdZdS)UnknownMethodExceptionNr)rrrrr?sr?c@s eZdZdS)RhnUuidUniquenessErrorNr)rrrrr@sr@c@seZdZdZedZdS) NetworkErrorzD some generic network error occurred, e.g. connection reset by peer zNetwork error: Nr-rrrrrAsrAc@seZdZddZejZdS)SSLCertificateVerifyFailedErrorcCst|ddS)Nz(The SSL certificate failed verification.)r*rr#rrrrsz(SSLCertificateVerifyFailedError.__init__N)rrrrrrrrrrrBsrBc@s eZdZdS)SSLCertificateFileNotFoundNr)rrrrrCsrCc@seZdZdZdS)$AuthenticationOrAccountCreationErrora%Class that can represent different things depending on context: While logging in with an existing user it represents a username or password being incorrect. While creating a new account, it represents the username already being taken or the user not being allowed to create an account. Optimally these different things would be different exceptions, but there are single fault codes the server can return to the client that can mean more than one of them so we have no way of knowing which is actually intended. Nr>rrrrrDs rDc@s eZdZdS)NotEntitlingErrorNr)rrrrrEsrEc@s eZdZdS)UnableToCreateUserNr)rrrrrFsrFc@s eZdZdS)ActivationKeyUsageLimitErrorNr)rrrrrGsrGc@s eZdZdS)LoginMinLengthErrorNr)rrrrrHsrHc@s eZdZdS)PasswordMinLengthErrorNr)rrrrrIsrIc@s eZdZdS)PasswordMaxLengthErrorNr)rrrrrJsrJc@s$eZdZddZddZddZdS)InsuffMgmntEntsErrorcCst|||dSr r:r2rrrrszInsuffMgmntEntsError.__init__cCs|jSr r r#rrrr$szInsuffMgmntEntsError.__repr__cCs.td}d}||t|}|d||S)Na Your organization does not have enough Management entitlements to register this system to CloudLinux Network. Please notify your organization administrator of this error. You should be able to register this system after your organization frees existing or purchases additional entitlements. Additional entitlements may be purchased by your organization administrator by logging into CloudLinux Network and visiting A common cause of this error code is due to having mistakenly setup an Activation Key which is set as the universal default. If an activation key is set on the account as a universal default, you can disable this key and retry to avoid requiring a Management entitlement.z Explanation:)rrindexlen)rr3ZnewExplnZtermlocrrrr;s z&InsuffMgmntEntsError.changeExplanationNr<rrrrrKsrKc@seZdZdZdS)InvalidRedirectionErrorz7 Raise when redirect requests could'nt return a packageNr>rrrrrOsrO)0gettext translationtr&rrZrhn.i18nrZup2date_clientrsyspathZ yum.Errorsrr ImportErrorZdnf.exceptionsr Exceptionr(r*r+r,r.r/r0r1r4r5r6r7r8r9r=r?r@rArBrCrDrErFrGrHrIrJrKrOrrrrsf      &