OS : Linux
PHP Version : 7.4.33
Software : Apache/2.4.6 (CentOS) PHP/7.4.33
Information System : Linux apprendre2 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
Disable Function : ó oBú]c @ s´ d d l m Z d d l m Z d d l m Z d d l j j j Z e j e ƒ Z i d d 6Z d Z d Z d Z e Z d e j f d „ ƒ YZ e e j f f g Z d „ Z d S( iÿÿÿÿ( t log( t sources( t utilNs' http://169.254.169.254/metadata/v1.jsont metadata_urli i t DataSourceDigitalOceanc B sA e Z d Z d „ Z d „ Z d „ Z d „ Z e d „ ƒ Z RS( t DigitalOceanc C sØ t j j | | | | ƒ | | _ t ƒ | _ t j t j | d d g i ƒ t g ƒ | _ | j d | _ | j j d t ƒ | _ | j j d t ƒ | _ | j j d t ƒ | _ | j j d t ƒ | _ d | _ d S( Nt datasourceR R t retriest timeoutt use_ip4LLt wait_retry( R t DataSourcet __init__t distrot dictt metadataR t mergemanydictt get_cfg_by_patht BUILTIN_DS_CONFIGt ds_cfgt metadata_addresst gett MD_RETRIESR t MD_TIMEOUTR t MD_USE_IPV4LLR t MD_WAIT_RETRYR t Nonet _network_config( t selft sys_cfgR t paths( ( sL /usr/lib/python2.7/site-packages/cloudinit/sources/DataSourceDigitalOcean.pyR ! s c C s t j ƒ S( N( t do_helpert read_sysinfo( R ( ( sL /usr/lib/python2.7/site-packages/cloudinit/sources/DataSourceDigitalOcean.pyt _get_sysinfo/ s c C s; | j ƒ \ } } | s t St j d | ƒ d } | j rJ t j ƒ } n t j | j d | j d | j d | j ƒ} | | _ | j d | ƒ | j d <| j d | ƒ | j d <| j d ƒ | j d <| j d ƒ | j d <| j d d ƒ | j d <| j d d ƒ | _ | j d d ƒ | _ | r7t j | ƒ n t S( Ns' Running on digital ocean. droplet_id=%sR t sec_betweenR t droplet_ids instance-idt hostnames local-hostnamet interfacest public_keyss public-keyst regiont defaultt availability_zonet vendor_datat user_data( R! t Falset LOGt infoR R R t assign_ipv4_link_localt read_metadataR R R R t metadata_fullR R t vendordata_rawt userdata_rawt del_ipv4_link_localt True( R t is_doR# t ipv4LL_nict md( ( sL /usr/lib/python2.7/site-packages/cloudinit/sources/DataSourceDigitalOcean.pyt _get_data2 s* c C s t j | j ƒ d ƒ S( Ns system-serial-number( R t instance_id_matches_system_uuidt get_instance_id( R R ( ( sL /usr/lib/python2.7/site-packages/cloudinit/sources/DataSourceDigitalOcean.pyt check_instance_idQ s c C sq | j r | j S| j j d ƒ } t j | ƒ | sD t d ƒ ‚ n | j d d } t j | | ƒ | _ | j S( s¥ Configure the networking. This needs to be done each boot, since the IP information may have changed due to snapshot and/or migration. R% s' Unable to get meta-data from server....t dnst nameservers( R R R R- t debugt ExceptionR1 R t convert_network_configuration( R R% R> ( ( sL /usr/lib/python2.7/site-packages/cloudinit/sources/DataSourceDigitalOcean.pyt network_configU s ( t __name__t __module__t dsnameR R! R9 R<