%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python2.7/site-packages/salt/
Upload File :
Create Path :
Current File : //lib/python2.7/site-packages/salt/exceptions.pyo

�
���^c@@s�dZddlmZmZmZddlZddlZddlZddlZ	ddl
mZeje
�Zd�Zd�Zdefd��YZd	efd
��YZdefd��YZd
efd��YZdefd��YZdefd��YZdefd��YZdefd��YZdefd��YZdefd��YZdefd��YZdefd��YZdefd ��YZd!efd"��YZ d#efd$��YZ!d%efd&��YZ"d'efd(��YZ#d)ee$fd*��YZ%d+efd,��YZ&d-efd.��YZ'd/efd0��YZ(d1efd2��YZ)d3efd4��YZ*d5efd6��YZ+d7efd8��YZ,d9efd:��YZ-d;efd<��YZ.d=efd>��YZ/d?efd@��YZ0dAefdB��YZ1dCefdD��YZ2dEefdF��YZ3dGefdH��YZ4dIefdJ��YZ5dKefdL��YZ6dMe6fdN��YZ7dOe6fdP��YZ8dQe6fdR��YZ9dSe6fdT��YZ:dUe6fdV��YZ;dWe6fdX��YZ<dYefdZ��YZ=d[efd\��YZ>d]efd^��YZ?d_efd`��YZ@daefdb��YZAdcefdd��YZBdeefdf��YZCdgeCfdh��YZDdieCfdj��YZEdkeCfdl��YZFdmeCfdn��YZGdoeCfdp��YZHdqeFfdr��YZIdseCfdt��YZJdueCfdv��YZKdweKfdx��YZLdyeCfdz��YZMd{eCfd|��YZNd}eCfd~��YZOdeCfd���YZPd�efd���YZQdS(�u;
This module is a central location for all salt exceptions
i(tabsolute_importtprint_functiontunicode_literalsN(tsixcC@s2ddlm}i|_|j|�j�}|S(u-
    Serialize obj and format for output
    i(tnested(tsalt.outputRt__opts__toutputtrstrip(tobjRtret((s3/usr/lib/python2.7/site-packages/salt/exceptions.pyt_nested_outputs	cC@s|jr|jdSdS(u:
    Get human readable message from Python Exception
    iu(targs(terror((s3/usr/lib/python2.7/site-packages/salt/exceptions.pytget_error_messagest
SaltExceptioncB@s,eZdZdd�Zd�Zd�ZRS(uQ
    Base exception class; all Salt-specific exceptions should subclass this
    ucC@s�ddl}t|tj�s0tj|�}ntjsHt|t�r�tt|�j	|j
jj|��||_
|_nyt|t�r�tt|�j	|�|j
jj|�|_
|_n2tt|�j	t|��t|�|_
|_dS(Ni(tsalt.utils.stringutilst
isinstanceRtstring_typest	text_typetPY3tunicodetsuperRt__init__tutilststringutilstto_strtmessagetstrerrortstrt
to_unicode(tselfRtsalt((s3/usr/lib/python2.7/site-packages/salt/exceptions.pyR)s"cC@s|jS(N(R(R((s3/usr/lib/python2.7/site-packages/salt/exceptions.pyt__unicode__>scC@sCtjr'itj|�d6|jd6Std|j�d|j�S(us
        Pack this exception into a serializable dictionary that is safe for
        transport via msgpack
        umessageuargsRR(RRRRtdictR!(R((s3/usr/lib/python2.7/site-packages/salt/exceptions.pytpackAs	(t__name__t
__module__t__doc__RR!R#(((s3/usr/lib/python2.7/site-packages/salt/exceptions.pyR%s	tSaltClientErrorcB@seZdZRS(u-
    Problem reading the master root key
    (R$R%R&(((s3/usr/lib/python2.7/site-packages/salt/exceptions.pyR'KstSaltMasterErrorcB@seZdZRS(u-
    Problem reading the master root key
    (R$R%R&(((s3/usr/lib/python2.7/site-packages/salt/exceptions.pyR(QstSaltNoMinionsFoundcB@seZdZRS(u9
    An attempt to retrieve a list of minions failed
    (R$R%R&(((s3/usr/lib/python2.7/site-packages/salt/exceptions.pyR)WstSaltSyndicMasterErrorcB@seZdZRS(uD
    Problem while proxying a request in the syndication master
    (R$R%R&(((s3/usr/lib/python2.7/site-packages/salt/exceptions.pyR*]stSaltMasterUnresolvableErrorcB@seZdZRS(u7
    Problem resolving the name of the Salt master
    (R$R%R&(((s3/usr/lib/python2.7/site-packages/salt/exceptions.pyR+cst
MasterExitcB@seZdZRS(u$
    Rise when the master exits
    (R$R%R&(((s3/usr/lib/python2.7/site-packages/salt/exceptions.pyR,istAuthenticationErrorcB@seZdZRS(u5
    If sha256 signature fails during decryption
    (R$R%R&(((s3/usr/lib/python2.7/site-packages/salt/exceptions.pyR-ostCommandNotFoundErrorcB@seZdZRS(uK
    Used in modules or grains when a required binary is not available
    (R$R%R&(((s3/usr/lib/python2.7/site-packages/salt/exceptions.pyR.ustCommandExecutionErrorcB@seZdZddd�ZRS(u�
    Used when a module runs a command which returns an error and wants
    to show the user the output gracefully instead of dying
    ucC@sxddl}y|jjj|�}WnStk
rzytj|�}Wq{tk
rv|jjjt|��}q{XnX||_	||_
|j
rN|r�|ddkr�|d7}n|d7}n|d7}|t|j
�}t|j
t
�rBtj|j
�}|jdd�|r3|t|�|_qK|j	|_q^||_n|j	|_}tt|�j|�dS(Nii����u.?!u.u uAdditional info follows:

uchanges(RRRRt	TypeErrorRRtUnicodeDecodeErrorRR
tinfoRRR"tcopytdeepcopytpoptNonetstrerror_without_changesRR/R(RRR2R texc_str_prefixtexc_strtinfo_without_changes((s3/usr/lib/python2.7/site-packages/salt/exceptions.pyR�s4

#			


N(R$R%R&R6R(((s3/usr/lib/python2.7/site-packages/salt/exceptions.pyR/{stLoaderErrorcB@seZdZRS(u-
    Problems loading the right renderer
    (R$R%R&(((s3/usr/lib/python2.7/site-packages/salt/exceptions.pyR;�stPublishErrorcB@seZdZRS(u?
    Problems encountered when trying to publish a command
    (R$R%R&(((s3/usr/lib/python2.7/site-packages/salt/exceptions.pyR<�stMinionErrorcB@seZdZRS(uA
    Minion problems reading uris such as salt:// or http://
    (R$R%R&(((s3/usr/lib/python2.7/site-packages/salt/exceptions.pyR=�stFileserverConfigErrorcB@seZdZRS(u<
    Used when invalid fileserver settings are detected
    (R$R%R&(((s3/usr/lib/python2.7/site-packages/salt/exceptions.pyR>�st
FileLockErrorcB@seZdZdd�ZRS(u9
    Used when an error occurs obtaining a file lock
    cO@sTtt|�j|||�|dkrGtjd�tj�|_n	||_dS(Nu�time_start should be provided when raising a FileLockError. Defaulting to current time as a fallback, but this may result in an inaccurate timeout.(RR?RR6tlogtwarningttimet
time_start(RRRCRtkwargs((s3/usr/lib/python2.7/site-packages/salt/exceptions.pyR�sN(R$R%R&R6R(((s3/usr/lib/python2.7/site-packages/salt/exceptions.pyR?�stGitLockErrorcB@seZdZd�ZRS(ux
    Raised when an uncaught error occurs in the midst of obtaining an
    update/checkout lock in salt.utils.gitfs.

    NOTE: While this uses the errno param similar to an OSError, this exception
    class is *not* as subclass of OSError. This is done intentionally, so that
    this exception class can be caught in a try/except without being caught as
    an OSError.
    cO@s)tt|�j|||�||_dS(N(RRERterrno(RRFRRRD((s3/usr/lib/python2.7/site-packages/salt/exceptions.pyR�s(R$R%R&R(((s3/usr/lib/python2.7/site-packages/salt/exceptions.pyRE�s	tGitRemoteErrorcB@seZdZRS(uv
    Used by GitFS to denote a problem with the existence of the "origin" remote
    or part of its configuration
    (R$R%R&(((s3/usr/lib/python2.7/site-packages/salt/exceptions.pyRG�stSaltInvocationErrorcB@seZdZRS(u�
    Used when the wrong number of arguments are sent to modules or invalid
    arguments are specified on the command line
    (R$R%R&(((s3/usr/lib/python2.7/site-packages/salt/exceptions.pyRH�st
PkgParseErrorcB@seZdZRS(u�
    Used when of the pkg modules cannot correctly parse the output from
    the CLI tool (pacman, yum, apt, aptitude, etc)
    (R$R%R&(((s3/usr/lib/python2.7/site-packages/salt/exceptions.pyRI�stSaltRenderErrorcB@s#eZdZddddd�ZRS(u�
    Used when a renderer needs to raise an explicit error. If a line number and
    buffer string are passed, get_context will be invoked to get the location
    of the error.
    uu    <======================cC@sHddl}||_y|jjj|�}WnStk
r�ytj|�}Wq�tk
r|jjjt	|��}q�XnX||_
||_d|_|r�|dj
|�7}n|j
r.|jr.ddl}|jjj|j|j
d|�|_|dj
|j
|jjj|j��7}ntt|�j|�dS(Niuu
{0}
tmarkeru; line {0}

{1}(RR
RRRR0RRR1Rtline_numtbuffertcontexttformattsalt.utils.templatestget_contextRRJR(RRRLtbufRKttraceR R9((s3/usr/lib/python2.7/site-packages/salt/exceptions.pyR	s0	

#					N(R$R%R&R6R(((s3/usr/lib/python2.7/site-packages/salt/exceptions.pyRJs
tSaltClientTimeoutcB@seZdZdd�ZRS(uu
    Thrown when a job sent through one of the Client interfaces times out

    Takes the ``jid`` as a parameter
    cO@s)tt|�j|||�||_dS(N(RRTRtjid(RRRURRD((s3/usr/lib/python2.7/site-packages/salt/exceptions.pyR8sN(R$R%R&R6R(((s3/usr/lib/python2.7/site-packages/salt/exceptions.pyRT2stSaltCacheErrorcB@seZdZRS(u[
    Thrown when a problem was encountered trying to read or write from the salt cache
    (R$R%R&(((s3/usr/lib/python2.7/site-packages/salt/exceptions.pyRV=stTimeoutErrorcB@seZdZRS(uP
    Thrown when an opration cannot be completet within a given time limit.
    (R$R%R&(((s3/usr/lib/python2.7/site-packages/salt/exceptions.pyRWCstSaltReqTimeoutErrorcB@seZdZRS(uS
    Thrown when a salt master request call fails to return within the timeout
    (R$R%R&(((s3/usr/lib/python2.7/site-packages/salt/exceptions.pyRXIstTimedProcTimeoutErrorcB@seZdZRS(u�
    Thrown when a timed subprocess does not terminate within the timeout,
    or if the specified timeout is not an int or a float
    (R$R%R&(((s3/usr/lib/python2.7/site-packages/salt/exceptions.pyRYOstEauthAuthenticationErrorcB@seZdZRS(u0
    Thrown when eauth authentication fails
    (R$R%R&(((s3/usr/lib/python2.7/site-packages/salt/exceptions.pyRZVstTokenAuthenticationErrorcB@seZdZRS(u0
    Thrown when token authentication fails
    (R$R%R&(((s3/usr/lib/python2.7/site-packages/salt/exceptions.pyR[\stSaltDeserializationErrorcB@seZdZRS(u3
    Thrown when salt cannot deserialize data.
    (R$R%R&(((s3/usr/lib/python2.7/site-packages/salt/exceptions.pyR\bstAuthorizationErrorcB@seZdZRS(uH
    Thrown when runner or wheel execution fails due to permissions
    (R$R%R&(((s3/usr/lib/python2.7/site-packages/salt/exceptions.pyR]hstSaltDaemonNotRunningcB@seZdZRS(u�
    Throw when a running master/minion/syndic is not running but is needed to
    perform the requested operation (e.g., eauth).
    (R$R%R&(((s3/usr/lib/python2.7/site-packages/salt/exceptions.pyR^nstSaltRunnerErrorcB@seZdZRS(u
    Problem in runner
    (R$R%R&(((s3/usr/lib/python2.7/site-packages/salt/exceptions.pyR_ustSaltWheelErrorcB@seZdZRS(u
    Problem in wheel
    (R$R%R&(((s3/usr/lib/python2.7/site-packages/salt/exceptions.pyR`{stSaltConfigurationErrorcB@seZdZRS(u
    Configuration error
    (R$R%R&(((s3/usr/lib/python2.7/site-packages/salt/exceptions.pyRa�stSaltSystemExitcB@seZdZddd�ZRS(u~
    This exception is raised when an unsolvable problem is found. There's
    nothing else to do, salt should just exit.
    icC@stj||�dS(N(t
SystemExitR(Rtcodetmsg((s3/usr/lib/python2.7/site-packages/salt/exceptions.pyR�sN(R$R%R&R6R(((s3/usr/lib/python2.7/site-packages/salt/exceptions.pyRb�stSaltCloudExceptioncB@seZdZRS(u&
    Generic Salt Cloud Exception
    (R$R%R&(((s3/usr/lib/python2.7/site-packages/salt/exceptions.pyRf�stSaltCloudSystemExitcB@s#eZdZejjjd�ZRS(uH
    This exception is raised when the execution should be stopped.
    cC@s,tt|�j|�||_||_dS(N(RRgRRt	exit_code(RRRh((s3/usr/lib/python2.7/site-packages/salt/exceptions.pyR�s	(R$R%R&R tdefaultst	exitcodest
EX_GENERICR(((s3/usr/lib/python2.7/site-packages/salt/exceptions.pyRg�stSaltCloudConfigErrorcB@seZdZRS(uL
    Raised when a configuration setting is not found and should exist.
    (R$R%R&(((s3/usr/lib/python2.7/site-packages/salt/exceptions.pyRl�stSaltCloudNotFoundcB@seZdZRS(uU
    Raised when some cloud provider function cannot find what's being searched.
    (R$R%R&(((s3/usr/lib/python2.7/site-packages/salt/exceptions.pyRm�stSaltCloudExecutionTimeoutcB@seZdZRS(uO
    Raised when too much time has passed while querying/waiting for data.
    (R$R%R&(((s3/usr/lib/python2.7/site-packages/salt/exceptions.pyRn�stSaltCloudExecutionFailurecB@seZdZRS(uV
    Raised when too much failures have occurred while querying/waiting for data.
    (R$R%R&(((s3/usr/lib/python2.7/site-packages/salt/exceptions.pyRo�stSaltCloudPasswordErrorcB@seZdZRS(u;
    Raise when virtual terminal password input failed
    (R$R%R&(((s3/usr/lib/python2.7/site-packages/salt/exceptions.pyRp�stNotImplementedcB@seZdZRS(u�
    Used when a module runs a command which returns an error and wants
    to show the user the output gracefully instead of dying
    (R$R%R&(((s3/usr/lib/python2.7/site-packages/salt/exceptions.pyRq�st
TemplateErrorcB@seZdZRS(u=
    Used when a custom error is triggered in a template
    (R$R%R&(((s3/usr/lib/python2.7/site-packages/salt/exceptions.pyRr�stArgumentValueErrorcB@seZdZRS(uI
    Used when an invalid argument was passed to a command execution
    (R$R%R&(((s3/usr/lib/python2.7/site-packages/salt/exceptions.pyRs�st
CheckErrorcB@seZdZRS(u!
    Used when a check fails
    (R$R%R&(((s3/usr/lib/python2.7/site-packages/salt/exceptions.pyRt�stInvalidConfigErrorcB@seZdZRS(u)
    Used when the config is invalid
    (R$R%R&(((s3/usr/lib/python2.7/site-packages/salt/exceptions.pyRu�stInvalidEntityErrorcB@seZdZRS(u.
    Used when an entity fails validation
    (R$R%R&(((s3/usr/lib/python2.7/site-packages/salt/exceptions.pyRv�stVMwareSaltErrorcB@seZdZRS(u7
    Used when a VMware object cannot be retrieved
    (R$R%R&(((s3/usr/lib/python2.7/site-packages/salt/exceptions.pyRw�stVMwareRuntimeErrorcB@seZdZRS(uZ
    Used when a runtime error is encountered when communicating with the
    vCenter
    (R$R%R&(((s3/usr/lib/python2.7/site-packages/salt/exceptions.pyRx�stVMwareConnectionErrorcB@seZdZRS(ui
    Used when the client fails to connect to a either a VMware vCenter server or
    to a ESXi host
    (R$R%R&(((s3/usr/lib/python2.7/site-packages/salt/exceptions.pyRy�stVMwareObjectRetrievalErrorcB@seZdZRS(u7
    Used when a VMware object cannot be retrieved
    (R$R%R&(((s3/usr/lib/python2.7/site-packages/salt/exceptions.pyRz�stVMwareObjectNotFoundErrorcB@seZdZRS(u1
    Used when a VMware object was not found
    (R$R%R&(((s3/usr/lib/python2.7/site-packages/salt/exceptions.pyR{�stVMwareObjectExistsErrorcB@seZdZRS(u2
    Used when a VMware object already exists
    (R$R%R&(((s3/usr/lib/python2.7/site-packages/salt/exceptions.pyR|stVMwareMultipleObjectsErrorcB@seZdZRS(uJ
    Used when multiple objects were retrieved (and one was expected)
    (R$R%R&(((s3/usr/lib/python2.7/site-packages/salt/exceptions.pyR}stVMwareNotFoundErrorcB@seZdZRS(u1
    Used when a VMware object was not found
    (R$R%R&(((s3/usr/lib/python2.7/site-packages/salt/exceptions.pyR~stVMwareApiErrorcB@seZdZRS(u;
    Used when representing a generic VMware API error
    (R$R%R&(((s3/usr/lib/python2.7/site-packages/salt/exceptions.pyRstVMwareFileNotFoundErrorcB@seZdZRS(uK
    Used when representing a generic VMware error if a file not found
    (R$R%R&(((s3/usr/lib/python2.7/site-packages/salt/exceptions.pyR�stVMwareSystemErrorcB@seZdZRS(u>
    Used when representing a generic VMware system error
    (R$R%R&(((s3/usr/lib/python2.7/site-packages/salt/exceptions.pyR�#stVMwarePowerOnErrorcB@seZdZRS(u2
    Used when error occurred during power on
    (R$R%R&(((s3/usr/lib/python2.7/site-packages/salt/exceptions.pyR�)stVMwareVmRegisterErrorcB@seZdZRS(u:
    Used when a configuration parameter is incorrect
    (R$R%R&(((s3/usr/lib/python2.7/site-packages/salt/exceptions.pyR�/stVMwareVmCreationErrorcB@seZdZRS(u:
    Used when a configuration parameter is incorrect
    (R$R%R&(((s3/usr/lib/python2.7/site-packages/salt/exceptions.pyR�5st
MissingSmbcB@seZdZRS(u.
    Raised when no smb library is found.
    (R$R%R&(((s3/usr/lib/python2.7/site-packages/salt/exceptions.pyR�;s(RR&t
__future__RRRR3tloggingRBtsalt.defaults.exitcodesR tsalt.extRt	getLoggerR$R@RRt	ExceptionRR'R(R)R*R+RcR,R-R.R/R;R<R=R>R?RERGR0RHRIRJRTRVRWRXRYRZR[R\R]R^R_R`RaRbRfRgRlRmRnRoRpRqRrRsRtRuRvRwRxRyRzR{R|R}R~RR�R�R�R�R�R�(((s3/usr/lib/python2.7/site-packages/salt/exceptions.pyt<module>s�		&;/	


Zerion Mini Shell 1.0