403Webshell
Server IP : 178.105.222.151  /  Your IP : 216.73.216.38
Web Server : nginx/1.28.3
System : Linux MNK 7.0.0-15-generic #15-Ubuntu SMP PREEMPT_DYNAMIC Wed Apr 22 16:06:43 UTC 2026 x86_64
User : www-data ( 33)
PHP Version : 8.5.4
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/cloudinit/sources/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/cloudinit/sources/__pycache__/DataSourceAltCloud.cpython-314.pyc
+
��i�!���Rt^RIt^RIt^RIt^RIt^RIHtHtHtH	t	]P!]4tRt
RR.tR/RRR	R
R//tRt!R
R]P"4tRt]]P(]P*33.tRtR#)zb
This file contains code used to gather the user data passed to an
instance on RHEVm and vSphere.
N)�dmi�sources�subp�utilz/etc/sysconfig/cloud-info�modprobe�floppyzblock-device-mappingzinstance-idi�zlocal-hostname�	localhost�	placementc�>�VR,pVR,p\P!V4P4pV# \dX\P!T4P4pT# \d!\P!\
R4R#i;ii;i)aB
Description:
    This callback will be applied by util.mount_cb() on the mounted
    file.

    Deltacloud file name contains deltacloud. Those not using
    Deltacloud but instead instrumenting the injection, could
    drop deltacloud from the file name.

Input:
    mount_dir - Mount directory

Returns:
    User Data

z/deltacloud-user-data.txtz/user-data.txtz Failed accessing user data file.N)r�load_text_file�strip�IOError�logexc�LOG)�	mount_dir�deltacloud_user_data_file�user_data_file�	user_datas&   �F/usr/lib/python3/dist-packages/cloudinit/sources/DataSourceAltCloud.py�read_user_data_callbackr&s���$!*�,G� G���!1�1�N���'�'�(A�B�H�H�J�	������	��+�+�N�;�A�A�C�I�
���	�	��K�K��?�@��	���s'�$:�B�$A-�-&B�B�B�Bc�laa�]tRt^HtoRtRtV3RlV3RlltRtRtRt	Rt
R	tR
tRt
VtV;t#)�DataSourceAltCloud�AltCloudc��\PPWW#4RVnRVn\P
VnR#)N)�/zfile://)r�
DataSource�__init__�seed�supported_seed_starts�METADATA_UNKNOWN�source)�self�sys_cfg�distro�pathss&&&&rr�DataSourceAltCloud.__init__Ls4�����#�#�D�6�A���	�%5��"��.�.���c�$<�V^8�dQhRS[RR/#)��ci_pkl_version�returnN)�int)�format�
__classdict__s"�r�__annotate__�DataSourceAltCloud.__annotate__Rs���3�3��3��3r&c�x<�\SV`V4\VR4'g\PVnR#R#)r N)�super�	_unpickle�hasattrrrr )r!r)�	__class__s&&�rr2�DataSourceAltCloud._unpickleRs/���
���.�)��t�X�&�&�!�2�2�D�K�'r&c�h�\PPV4pV:RVP:R2#)z [seed=�])rr�__str__r)r!�roots& rr8�DataSourceAltCloud.__str__Ws'���!�!�)�)�$�/��!%�t�y�y�1�1r&c���\PP\4'd:\P
!\4P
4P4pV#\P!R4pV'gR#VP4pVPR4'dR#VPR4'dR#R# \d%\P!\R\4R#i;i)a
Description:
    Get the type for the cloud back end this instance is running on
    by examining the string returned by reading either:
        CLOUD_INFO_FILE or
        the dmi data.

Input:
    None

Returns:
    One of the following strings:
    'RHEV', 'VSPHERE' or 'UNKNOWN'

z'Unable to access cloud info file at %s.�UNKNOWNzsystem-product-name�RHEV�VMWARE�VSPHERE)�os�path�exists�CLOUD_INFO_FILErrr�upperr
rrr�
read_dmi_data�
startswith)r!�
cloud_type�system_name�sys_names&   r�get_cloud_type�!DataSourceAltCloud.get_cloud_type[s��� �7�7�>�>�/�*�*�

!��'�'��8�>�>�@�F�F�H�����'�'�(=�>�����$�$�&�����v�&�&�����x�(�(����)�
!�����=�#��
!�

!�s�6C�+C6�5C6c�H�\PR4VP4p\PR\V44RV9dVP	4'dR#M"RV9dVP4'dR#MR#\P!\R4R#)a4
Description:
    User Data is passed to the launching instance which
    is used to perform instance configuration.

    Cloud providers expose the user data differently.
    It is necessary to determine which cloud provider
    the current instance is running on to determine
    how to access the user data. Images built with
    image factory will contain a CLOUD_INFO_FILE which
    contains a string identifying the cloud provider.

    Images not built with Imagefactory will try to
    determine what the cloud provider is based on system
    information.
zInvoked get_data()zcloud_type: %sr=Tr?FzFailed accessing user data.)r�debugrJ�str�user_data_rhevm�user_data_vsphererr�r!rGs& r�	_get_data�DataSourceAltCloud._get_data�s���$	�	�	�&�'��(�(�*�
��	�	�"�C�
�O�4��Z���#�#�%�%��&�
�*�
$��%�%�'�'��(�
�	
���C�6�7�r&c��VP4pVR8XdRVnVP4:RVP:R2#)z(Return the subplatform metadata details.r=�/dev/fd0z (�))rJr �lowerrQs& r�_get_subplatform�#DataSourceAltCloud._get_subplatform�s7���(�(�*�
����$�D�K�&�,�,�.����<�<r&c��Rp\4Rp\P!T^R7\P!T\4pYn
\TnT'dR#R# \Pd(p\P!\
RT4Rp?R#Rp?ii;i \P\3d(p\P!\
RT4Rp?R#Rp?ii;i \d+pTP\P8wdhRp?L�Rp?i\Pd!\P!\
RT4ELi;i)	ag
RHEVM specific userdata read

 If on RHEV-M the user data will be contained on the
 floppy device in file <user_data_file>
 To access it:
   modprobe floppy

   Leverage util.mount_cb to:
       mkdir <tmp mount dir>
       mount /dev/fd0 <tmp mount dir>
       The call back passed to util.mount_cb will do:
           read <tmp mount dir>/<user_data_file>
NzFailed modprobe: %sFrU)rB�timeoutzFailed udevadm_settle: %s
�-Failed to mount %s when looking for user dataT)�modprobe_floppyr�ProcessExecutionErrorrrr�udevadm_settle�OSError�mount_cbr�errno�ENOENT�MountFailedError�userdata_raw�META_DATA_NOT_SUPPORTED�metadata)r!�
return_str�e�
floppy_dev�errs&    rrO�"DataSourceAltCloud.user_data_rhevm�s�� �
�	���
 �
�	����z�1�=�

	����z�3J�K�J�'��/��
�����?�)�)�	��K�K��2�A�6���	���*�*�G�4�	��K�K��:�A�>���	���	��y�y�E�L�L�(��)���$�$�	��K�K��?��
�	�sQ�
A"�B!�C&�"B�7B�B�!C#�<C�C#�&E�1 D�E�-E�
Ec��Rp\P!R4pVF/p\P!V\4pV'd	W0nMK1	Wn\Vn
V'dR#R# \
d,pTP\P8wdhRp?K�Rp?i\Pd!\P!\RT4K�i;i)aR
vSphere specific userdata read

If on vSphere the user data will be contained on the
cdrom device in file <user_data_file>
To access it:
   Leverage util.mount_cb to:
       mkdir <tmp mount dir>
       mount /dev/fd0 <tmp mount dir>
       The call back passed to util.mount_cb will do:
           read <tmp mount dir>/<user_data_file>
NzLABEL=CDROMr\TF)r�find_devs_withrarr r`rbrcrdrrrerfrg)r!rh�
cdrom_list�	cdrom_devrks&    rrP�$DataSourceAltCloud.user_data_vsphere�s����
��(�(��7�
�#�I�

�!�]�]�9�6M�N�
��"+�K���$� '��/��
�����!�
��9�9����,��-���(�(�
�����C���
�s#�)A+�+C�6 B�C�3C�C)rgrr rre)�__name__�
__module__�__qualname__�__firstlineno__�dsnamerr2r8rJrRrXrOrP�__static_attributes__�__classdictcell__�
__classcell__)r4r-s@@rrrHs?����
�F�/�3�3�
2�)�V%�N=�4�l&�&r&rc��\P!\4wr\PRRP	\4V4R#)zCommand: %s
Output%s� N)r�CMD_PROBE_FLOPPYrrM�join)�out�_errs  rr]r]s.���	�	�*�+�I�C��I�I�%�s�x�x�0@�'A�3�Gr&c�8�\P!V\4#)N)r�list_from_depends�datasources)�dependss&r�get_datasource_listr�"s���$�$�W�k�:�:r&)�__doc__rb�loggingr@�os.path�	cloudinitrrrr�	getLoggerrrrrCr|rfrrrr]�DEP_FILESYSTEM�DEP_NETWORKr�r��r&r�<module>r�s����

��	��.�.�
����!��.����)���B��3��k���	���DH��+�+�H�VH��'�0�0�'�2E�2E�F�G���;r&

Youez - 2016 - github.com/yon3zu
LinuXploit