관리-도구
편집 파일: warnings.cpython-39.pyc
a ����'�Dg ����������������������@���s\���d�dl�Z�d�dlZd�dlZd�dlmZmZ�e��e�Zddd�Z dd��Z d d d �Zddd�ZdS�)�����N)�helpers�utila'�� This system is using the EC2 Metadata Service, but does not appear to be running on Amazon EC2 or one of cloud-init's known platforms that provide a EC2 Metadata service. In the future, cloud-init may stop reading metadata from the EC2 Metadata Service unless the platform can be identified. If you are seeing this message, please file a bug against cloud-init at https://github.com/canonical/cloud-init/issues Make sure to include the cloud provider your instance is running on. For more information see https://github.com/canonical/cloud-init/issues/2795 After you have filed a bug, you can disable this warning by launching your instance with the cloud-config below, or putting that content into /etc/cloud/cloud.cfg.d/99-ec2-datasource.cfg #cloud-config datasource: Ec2: strict_id: falsea��� A new feature in cloud-init identified possible datasources for this system as: {dslist} However, the datasource used was: {source} In the future, cloud-init will only attempt to use datasources that are identified or specifically configured. For more information see https://bugs.launchpad.net/bugs/1669675 If you are seeing this message, please file a bug against cloud-init at https://github.com/canonical/cloud-init/issues Make sure to include the cloud provider your instance is running on. After you have filed a bug, you can disable this warning by launching your instance with the cloud-config below, or putting that content into /etc/cloud/cloud.cfg.d/99-warnings.cfg #cloud-config warnings: dsid_missing_source: off)Z non_ec2_mdZdsid_missing_sourcec�����������������C���s&���t�j|��di���di��d�}|�d�S�)NZsystem_info�paths)Z path_cfgs�warnings)r���ZPaths�getZ get_ipath_cur)�cfgr�����r����6/usr/lib/python3.9/site-packages/cloudinit/warnings.py� _get_warn_dir?���s�����r ���Tc�����������������C���s����||f}|�rt�|�t�s|S�t�|�d|f�}|d�u�r6|S�|dv�rBdS�|dv�rNdS�|�d�\}}}|dkrj|S�|r�zt|�}W�n�ty����|�Y�S�0�d|fS�) Nr���)Zon�trueT)TN)ZoffZfalseF)FN�,�sleepT)� isinstance�dictr���Zget_cfg_by_path� partition�int� ValueError)r����name�moder ����defaultZncfg�_Zcsleepr���r���r ����_load_warn_cfgF���s&���� r���c�����������������K���s��|d�u�ri�}t�||�||d�\}}|s(d�S�t|��jf�i�|��}d}|d�}d|�}d|�d�} g�} |�d����D�]}| �||���qn| }|r�d|�} | �|d�d�}t�t j �t|�|��| d�| ��d�| ���t �d| d�| �|��|�rt �d ||���t�|��d�S�) N)r���r ����F�������z # %%-%ds #�*� z [sleeping for %d seconds] z%s%s %sz$sleeping %d seconds for warning '%s')r����WARNINGS�format�strip� splitlines�append�centerr���Z write_file�os�path�joinr ����LOGZwarning�debug�timer ���)r���r���r ���r����kwargs�msgZmsgwidthZ linewidth�fmtZtoplineZfmtlines�lineZ closelineZsleepmsgr���r���r ����show_warningf���s2�����r,���)TN)NNT) Zloggingr"���r'���Z cloudinitr���r���Z getLogger�__name__r%���r���r ���r���r,���r���r���r���r ����<module>���s��� �5