HEX
Server: Apache
System: Linux zacp120.webway.host 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
User: govancoz (1003)
PHP: 8.3.26
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: //usr/lib/python3.6/site-packages/cloudinit/sources/__pycache__/DataSourceBigstep.cpython-36.pyc
3

\�me��@s\ddlZddlZddlZddlmZmZmZGdd�dej�Zeej	ej
ffgZdd�ZdS)�N)�sources�
url_helper�utilcsFeZdZdZ�fdd�Zded�dd�Zed�dd	�Zd
d�Z	�Z
S)
�DataSourceBigstepZBigstepcs&t�j|||�i|_d|_d|_dS)N�)�super�__init__�metadata�vendordata_raw�userdata_raw)�selfZsys_cfgZdistro�paths)�	__class__��'/usr/lib/python3.6/DataSourceBigstep.pyrszDataSourceBigstep.__init__F)�returncCsP|j�}|dkrdStj|�}tj|jj��}|d|_|d|_|d|_	dS)NFr	r
rT)
�_get_url_from_filerZreadurl�json�loads�contents�decoder	r
r)rZapply_filter�urlZresponseZdecodedrrr�	_get_datas



zDataSourceBigstep._get_datacCsd|j��d�S)z/Return the subplatform metadata source details.z
metadata (�))r)rrrr�_get_subplatform#sz"DataSourceBigstep._get_subplatformcCs`tjj|jjdddd�}ytj|�}Wn4tk
rZ}z|jtj	krHdS�WYdd}~XnX|S)N�dataZseedZbigstepr)
�os�path�joinr
Z	cloud_dirrZ	load_file�IOError�errno�ENOENT)rZurl_fileZcontent�errrr'sz$DataSourceBigstep._get_url_from_file)F)�__name__�
__module__�__qualname__Zdsnamer�boolr�strrr�
__classcell__rr)rrrs
rcCstj|t�S)N)rZlist_from_depends�datasources)Zdependsrrr�get_datasource_list?sr*)
r rrZ	cloudinitrrrZ
DataSourcerZDEP_FILESYSTEMZDEP_NETWORKr)r*rrrr�<module>s,