| Server IP : 3.138.164.131 / Your IP : 216.73.216.136 Web Server : Apache System : Linux ns1.techtime.me 4.18.0-147.8.1.el8.lve.1.x86_64 #1 SMP Mon Jun 29 09:55:57 EDT 2020 x86_64 User : injazaat ( 1471) PHP Version : 8.1.20 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /lib/python3.6/site-packages/cloudinit/sources/__pycache__/ |
Upload File : |
3
��b)! � @ s� d Z ddlZddlZddlZddlmZ ddlmZ ddlmZm Z m
Z
eje�Z
dZddgZi d d
i d�Zdd
� ZG dd� dej�Zdd� ZeejejffgZdd� ZdS )zb
This file contains code used to gather the user data passed to an
instance on RHEVm and vSphere.
� N)�dmi)�log)�sources�subp�utilz/etc/sysconfig/cloud-infoZmodprobeZfloppyi� Z localhost)zblock-device-mappingzinstance-idzlocal-hostnameZ placementc C sp | d }| d }yt j|�j� }W nH tk
rj yt j|�j� }W n tk
rd t jtd� dS X Y nX |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_file�strip�IOError�logexc�LOG)Z mount_dirZdeltacloud_user_data_fileZuser_data_fileZ user_data� r �(/usr/lib/python3.6/DataSourceAltCloud.py�read_user_data_callback'