| Server IP : 172.67.134.116 / Your IP : 216.73.217.22 Web Server : Apache System : Linux server.rehabsharif.com 5.14.0-611.54.3.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 7 16:31:24 EDT 2026 x86_64 User : nobi37te ( 1003) PHP Version : 8.2.33 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib/python3.9/site-packages/cloudinit/sources/__pycache__/ |
Upload File : |
a
'�Dg�! � @ s� d Z ddlZddlZddlZddlZddlmZmZmZm Z e�
e�ZdZ
ddgZi ddi d �Zd
d� ZG dd
� d
ej�Zdd� ZeejejffgZdd� ZdS )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-infoZmodprobeZfloppyi� Z localhost)zblock-device-mappingzinstance-idzlocal-hostnameZ placementc C sp | d }| d }zt �|��� }W nH tyj zt �|��� }W n" tyd t �td� Y Y dS 0 Y n0 |S )an
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)Z mount_dirZdeltacloud_user_data_fileZuser_data_fileZ user_data� r �H/usr/lib/python3.9/site-packages/cloudinit/sources/DataSourceAltCloud.py�read_user_data_callback&