HEX
Server: nginx/1.24.0
System: Linux localhost 5.15.0-46-generic #49-Ubuntu SMP Thu Aug 4 18:03:25 UTC 2022 x86_64
User: www (1000)
PHP: 8.3.27
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Upload Files
File: //lib/python3/dist-packages/cloudinit/sources/__pycache__/DataSourceBigstep.cpython-310.pyc
o

쑛h��@s\ddlZddlZddlZddlmZmZmZGdd�dej�Zeej	ej
ffgZdd�ZdS)�N)�sources�
url_helper�utilcsFeZdZdZ�fdd�Zddefdd�Zdefdd	�Zd
d�Z	�Z
S)
�DataSourceBigstep�Bigstepcs&t��|||�i|_d|_d|_dS)N�)�super�__init__�metadata�vendordata_raw�userdata_raw)�self�sys_cfg�distro�paths��	__class__��E/usr/lib/python3/dist-packages/cloudinit/sources/DataSourceBigstep.pyr	s
zDataSourceBigstep.__init__F�returncCsP|��}|dur
dSt�|�}t�|j���}|d|_|d|_|d|_	dS)NFr
rrT)
�_get_url_from_filer�readurl�json�loads�contents�decoder
rr)r
�apply_filter�url�response�decodedrrr�	_get_datas



zDataSourceBigstep._get_datacCsd|���d�S)z/Return the subplatform metadata source details.z
metadata (�))r)r
rrr�_get_subplatform#sz"DataSourceBigstep._get_subplatformc
Cs^tj�|jjdddd�}zt�|�}W|Sty.}z|jtj	kr)WYd}~dS�d}~ww)N�data�seed�bigstepr)
�os�path�joinr�	cloud_dirr�load_text_file�IOError�errno�ENOENT)r
�url_file�content�errrr's�	���z$DataSourceBigstep._get_url_from_file)F)�__name__�
__module__�__qualname__�dsnamer	�boolr �strr"r�
__classcell__rrrrrsrcCst�|t�S)N)r�list_from_depends�datasources)�dependsrrr�get_datasource_list?sr;)
r,rr&�	cloudinitrrr�
DataSourcer�DEP_FILESYSTEM�DEP_NETWORKr9r;rrrr�<module>s,�