܍~c\xddlZddlZddlmZddlmZddlmZejZdddZ dZ d d Z d 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_mddsid_missing_sourcectj|didi}|dS)N system_infopaths) path_cfgswarnings)rPathsget get_ipath_cur)cfgr s 4/usr/lib/python3/dist-packages/cloudinit/warnings.py _get_warn_dirrAsO M''-,,00"==   E   z * **Tc||f}|rt|ts|Stj|d|f}||S|dvrdS|dvrdS|d\}}}|dkr|S|r# t |}n#t $r|cYSwxYwd|fS) Nr )ontrueTTN)offfalseF)FN,sleepT) isinstancedictrget_cfg_by_path partitionint ValueError)rnamemoderdefaultncfg_csleeps r_load_warn_cfgr(Hs UmG jd++  j$%7 8 8D | ###z &&&{nnS))OD!V w  KKEE   NNN  ;s)A99 BBc |i}t||||\}}|sdSt|jd i|}d}|dz}d|z}d|zdz} g} |dD]} | || z| } |rd|z} | |ddz} tjtj t||| d | zdz| ztd| d | | |r2td ||t!j|dSdS) N)r#rFz # %%-%ds #* z [sleeping for %d seconds] z%s%s %sz$sleeping %d seconds for warning '%s')r(WARNINGSformatstrip splitlinesappendcenterr write_fileospathjoinrLOGwarningdebugtimer)r"rrr#kwargsmsgmsgwidth linewidthfmttoplinefmtlinesline closelinesleepmsgs r show_warningrGhs { dUCCCKD%  4.  ) )& ) )CH1 I  !CIo$GH $**,,$$d ####I ;2U:OOIs33d: O  ]3''..$))H%%%,w6 KK GTYYx%8%8)DDD  8%FFF 5rr)NNT) r6r< cloudinitrrloggingr getLoggerr9r/rr(rGr.rrrKs $$$$$$g252 2 j+++@######r