3 � 355_•I|¥‰ÓMjqØ‚¦ ë<óo¬À¿c 404 Not Found

Not Found

The requested URL was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

#ˆl–ß=¿J µ2ÛR‚œP-\l˜´oà ƒt@{ÂÁÀ(a '¡Dg®!ã@s dZddlZddlZddlZddlZddlmZmZmZm Z e  e ¡Z dZ ddgZiddid œZd d „ZGd d „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-mappingz instance-idzlocal-hostnameZ placementc Csp|d}|d}zt |¡ ¡}WnHtyjzt |¡ ¡}Wn"tydt td¡YYdS0Yn0|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&s   r cs`eZdZdZdd„Zeddœ‡fdd„ Zdd „Zd d „Zd d „Z dd„Z dd„Z dd„Z ‡Z S)ÚDataSourceAltCloudZAltCloudcCs*tj ||||¡d|_d|_tj|_dS)N)ú/zfile://)rÚ DataSourceÚ__init__ÚseedZsupported_seed_startsÚMETADATA_UNKNOWNÚsource)ÚselfZsys_cfgZdistroÚpathsr r r rLszDataSourceAltCloud.__init__N)Úci_pkl_versionÚreturncs"tƒ |¡t|dƒstj|_dS)Nr)ÚsuperÚ _unpickleÚhasattrrrr)rr©Ú __class__r r rRs  zDataSourceAltCloud._unpicklecCstj |¡}d||jfS)Nz %s [seed=%s])rrÚ__str__r)rÚrootr r r rWs zDataSourceAltCloud.__str__cCs„tj t¡rJzt t¡ ¡ ¡}Wn"tyDt  t dt¡YdS0|St   d¡}|s\dS| ¡}|  d¡rrdS|  d¡r€dSdS)at 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.ZUNKNOWNzsystem-product-nameÚRHEVZVMWAREÚVSPHERE)ÚosÚpathÚexistsÚCLOUD_INFO_FILErrrÚupperrr r rZ read_dmi_dataÚ startswith)rÚ cloud_typeZ system_nameZsys_namer r r Úget_cloud_type[s* ÿ ý   z!DataSourceAltCloud.get_cloud_typecCsbt d¡| ¡}t dt|ƒ¡d|vr8| ¡rRdSnd|vrN| ¡rRdSndSt td¡dS)aœ 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