⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.144
Server IP:
157.245.143.252
Server:
Linux www 6.11.0-9-generic #9-Ubuntu SMP PREEMPT_DYNAMIC Mon Oct 14 13:19:59 UTC 2024 x86_64
Server Software:
nginx/1.26.0
PHP Version:
8.3.11
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
lib
/
python3
/
dist-packages
/
cloudinit
/
__pycache__
/
View File Name :
cloud.cpython-312.pyc
f d dl Z d dlZd dlZd dlmZ d dlmZ d dlmZm Z d dl mZ d dlm Z ej e Z G d d Zy) N)Optional)Distro)PathsRunners)events) DataSourcec e Zd Z ddedededededee j fdZed Z dd Zd ZddZd Zed Zd Zd ZddZd ZddZddZddZy)CloudN datasourcepathscfgdistrorunnersreporterc || _ || _ || _ || _ || _ |t j ddd }|| _ y )Nzunnamed-cloud-reporterF)namedescriptionreporting_enabled)r r r _cfg_runnersr ReportEventStackr )selfr r r r r r s 1/usr/lib/python3/dist-packages/cloudinit/cloud.py__init__zCloud.__init__ sO % ..-4"'H ! c @ t j | j S N)copydeepcopyr r s r r z Cloud.cfg6 s }}TYY''r c @ | j j ||||| S )a Run a function gated by a named semaphore for a desired frequency. The typical case for this method would be to limit running of the provided func to a single well-defined frequency: PER_INSTANCE, PER_BOOT or PER_ONCE The semaphore provides a gate that persists across cloud-init boot stage boundaries so multiple modules can share this state even if they happen to be run in different boot stages or across reboots. )r run)r r functorargsfreq clear_on_fails r r" z Cloud.run; s! }} wdMJJr c | j j |z }t j j | s5t j dt j j | | y |S )Nz-No template found in %s for template named %s)r template_tplospathisfileLOGwarningdirname)r r fns r get_template_filenamezCloud.get_template_filenameI sR ZZ $ $ -ww~~b!KK?# r c 8 | j j | S r )r get_userdata)r apply_filters r r2 zCloud.get_userdataU s ++L99r c 6 | j j S r )r get_instance_idr s r r5 zCloud.get_instance_idX s ..00r c . | j j S r )r launch_indexr s r r7 zCloud.launch_index[ s +++r c 6 | j j S r )r get_public_ssh_keysr s r r9 zCloud.get_public_ssh_keys_ s 2244r c 6 | j j S r )r get_localer s r r; zCloud.get_localeb s ))++r c <