/usr/lib/python3/dist-packages/cloudinit/sources/__pycache__
Edit: /usr/lib/python3/dist-packages/cloudinit/sources/__pycache__/DataSourceAltCloud.cpython-310.pyc (7232B)
o
th! @ s d Z ddlZddlZddlZddlZddlmZmZmZm Z e
eZdZ
ddgZi ddi d Zd
d ZG dd
d
ejZdd ZeejejffgZdd ZdS )zb
This file contains code used to gather the user data passed to an
instance on RHEVm and vSphere.
N)dmisourcessubputilz/etc/sysconfig/cloud-infomodprobefloppyi 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_filestripIOErrorlogexcLOG) mount_dirdeltacloud_user_data_fileuser_data_file user_data r F/usr/lib/python3/dist-packages/cloudinit/sources/DataSourceAltCloud.pyread_user_data_callback&