403Webshell
Server IP : 39.108.156.168  /  Your IP : 216.73.216.104
Web Server : nginx/1.24.0
System : Linux e2.ksyuki.com 6.11.0-25-generic #25~24.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue Apr 15 17:20:50 UTC 2 x86_64
User : root ( 0)
PHP Version : 8.3.6
Disable Function : NONE
MySQL : OFF  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/lib/python3/dist-packages/cloudinit/config/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

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

��i��
��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;

Youez - 2016 - github.com/yon3zu
LinuXploit