Server IP : 209.38.156.173 / Your IP : 216.73.216.122 [ Web Server : Apache/2.4.52 (Ubuntu) System : Linux lakekumayuhotel 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.1.2-1ubuntu2.22 Disable Function : NONE Domains : 2 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib/python3/dist-packages/cloudinit/sources/__pycache__/ |
Upload File : |
o x[h�! � @ 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-info�modprobe�floppyi� � localhost)zblock-device-mappingzinstance-idzlocal-hostname� placementc C sn | d }| d }z t �|��� }W |S ty6 zt �|��� }W Y |S ty5 t �td� Y Y dS w w )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)� mount_dir�deltacloud_user_data_file�user_data_file� user_data� r �F/usr/lib/python3/dist-packages/cloudinit/sources/DataSourceAltCloud.py�read_user_data_callback&