Ë
    x[h  ã                   óp   — d dl Z d dlZd dlZd dlmZmZ  e j                  e«      ZdddœZ	d„ Z
d	d„Zd
d„Zy)é    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)Ú
non_ec2_mdÚdsid_missing_sourcec                 ó�   — t        j                  | j                  di «      j                  di «      ¬«      }|j                  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_dirr   ?   s>   € Ü�M‰MØ—'‘'˜-¨Ó,×0Ñ0°¸"Ó=ô€Eð ×Ñ˜zÓ*Ð*ó    c                 ó  — ||f}| rt        | t        «      s|S t        j                  | d|f«      }|€|S |dv ry|dv ry|j	                  d«      \  }}}|dk7  r|S |r	 t        |«      }d|fS d|fS # t        $ r |cY S w xY w)	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'   F   s³   € ð
 �Uˆm€GÙ”j ¤dÔ+Øˆä×Ñ  j°$Ð%7Ó8€DØ€|ØˆàÐ#Ñ#ØàÐ&Ñ&Øà—n‘n SÓ)�O€Dˆ!ˆVØˆw‚Øˆáð	Ü˜“KˆEð �ˆ;Ðˆ4�ˆ;Ðøô ò 	ØŠNð	ús   ÁA1 Á1A?Á>A?c                 ó”  — |€i }t        || ||¬«      \  }}|sy t        |    j                  d
i |¤Ž}d}|dz   }d|z  }d|z  dz   }	g }
|j                  d«      j	                  «       D ]  }|
j                  ||z  «       Œ |	}|rd|z  }|j                  |d«      dz   }t        j                  t        j                  j                  t        |«      | «      |	dj                  |
«      z   dz   |	z   «       t        j                  d|	dj                  |
«      |«       |r-t        j                  d	|| «       t!        j"                  |«       y y )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!   r   r   r"   ÚkwargsÚmsgÚmsgwidthÚ	linewidthÚfmtÚtoplineÚfmtlinesÚlineÚ	closelineÚsleepmsgs                 r   Úshow_warningrF   f   sC  € ð €{Øˆä   d°¸UÔC�K€Dˆ%ÙØä
�4‰.×
Ñ
Ñ
) &Ñ
)€CØ€HØ˜1‘€Ià
˜Ñ
!€CØ�I‰o Ñ$€GØ€HØ—	‘	˜$“×*Ñ*Ó,ò $ˆØ�‰˜˜d™
Õ#ð$ð €IÙØ2°UÑ:ˆØ—O‘O I¨sÓ3°dÑ:ˆ	ä‡O�OÜ
�‰�‰”] 3Ó'¨Ó.Ø�$—)‘)˜HÓ%Ñ%¨Ñ,¨wÑ6ôô
 ‡K�K�
˜G T§Y¡Y¨xÓ%8¸)ÔDáÜ�	‰	Ð8¸%ÀÔFÜ�
‰
�5Õð r   r   )NNT)Úloggingr5   r;   Ú	cloudinitr   r   Ú	getLoggerÚ__name__r8   r.   r   r'   rF   r-   r   r   ú<module>rK      sE   ðã Û 	Û ç #à€g×Ñ˜Ó!€ðð2ñ52€òj+óô@#r   