https://t.me/RX1948
Server : nginx/1.24.0
System : Linux ip-172-31-33-48 6.14.0-1011-aws #11~24.04.1-Ubuntu SMP Fri Aug 1 02:07:25 UTC 2025 x86_64
User : www-data ( 33)
PHP Version : 8.3.6
Disable Function : NONE
Directory :  /lib/python3/dist-packages/cloudinit/config/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/cloudinit/config/__pycache__/cc_update_hostname.cpython-312.pyc
�

x[h��
��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;

https://t.me/RX1948 - 2025