+
    gc                        ^ RI t ^ RIt^ RIHtHt ^ RIHtHtHtH	t	H
t
 ^ RIHt ] P                  ! ]
P                  ! ]4      4      tRtRtR]R,           ],           R	]R
,           ],           /tRtRtRtRt ! R R]4      tR# )    N)AnyDict)
exceptionshttpsecret_managersystemutil)PublicCloudAutoAttachInstancez http://169.254.169.254/metadata/z
2020-09-01pkcs7zattested/document?api-version=computezinstance/compute?api-version=z#/sys/class/dmi/id/chassis_asset_tagz%/var/lib/cloud/seed/azure/ovf-env.xmlz 7783-7084-3265-9085-8269-3286-77
UBUNTU_PROc                      a  ] tR t^t o ]]P                  ! ]P                  . ROR7      V 3R lR l4       4       t	]V 3R lR l4       t
]V 3R lR l4       tV 3R lR	 ltV 3R
 lR ltRtV tR# )AzureAutoAttachInstance)retry_sleepsc                6   < V ^8  d   QhRS[ S[S[3,          /#    return)r   strr   )format__classdict__s   "7/usr/lib/python3/dist-packages/uaclient/clouds/azure.py__annotate__$AzureAutoAttachInstance.__annotate__   s      d38n     c                   / p\        \        P                  4       4       F  w  r#\        P                  ! VR R/^R7      pVP
                  ^8w  d-   \        P                  ! VP
                  VP                  R7      hVR8X  d9   VP                  R,          pWQV&   \        P                  P                  V4       K  VP                  W&   K  	  V# )Metadatatrue)headerstimeout)codebodyr   	signature)sorted	IMDS_URLSitemsr   readurlr!   r   CloudMetadataErrorr"   	json_dictr   secrets
add_secret)self	responseskeyurlresponser#   s   &     r   identity_doc$AzureAutoAttachInstance.identity_doc   s     	y01HC||j&11H }}# 33!X]]  g~$..{;	!*#&&11)<!)!3!3	 2 r   c                    < V ^8  d   QhRS[ /# r   )r   )r   r   s   "r   r   r   0   s      C r   c                    R # )azure r,   s   &r   
cloud_type"AzureAutoAttachInstance.cloud_type/   s    r   c                    < V ^8  d   QhRS[ /# r   bool)r   r   s   "r   r   r   4   s     2 24 2r   c                   \         P                  P                  \        4      '       d6   \        P
                  ! \        4      p\        VP                  4       8X  d   R# \         P                  P                  \        4      # )z&This machine is a viable AzureInstanceT)	ospathexistsDMI_CHASSIS_ASSET_TAGr   	load_fileAZURE_CHASSIS_ASSET_TAGstripAZURE_OVF_ENV_FILE)r,   chassis_asset_tags   & r   	is_viable!AzureAutoAttachInstance.is_viable3   sS     77>>/00 & 0 01F G&*;*A*A*CCww~~011r   c                    < V ^8  d   QhRS[ /# r   r;   )r   r   s   "r   r   r   <   s      T r   c                    R # )Tr6   r7   s   &r   should_poll_for_pro_license3AzureAutoAttachInstance.should_poll_for_pro_license<   s    r   c                &   < V ^8  d   QhRS[ RS[ /# )r   wait_for_changer   r;   )r   r   s   "r   r   r   @   s     O O O$ Or   c                  V'       d   \         P                  ! 4       h\        P                  R R4      p \        P
                  ! VRR/R7      pTP                  ^8w  d5   \        P                  TP                  4       \         P                  ! 4       hTP                  P                  R4      \        8H  #   \         d0   p\        P                  T4       \         P                  ! 4       hRp?ii ; i)r    r   r   )r   NlicenseType)r   CancelProLicensePollingr%   getr   r'   OSErrorLOGerrorr!   r"   r)   AZURE_PRO_LICENSE_TYPE)r,   rN   r/   r0   es   &$   r   is_pro_license_present.AzureAutoAttachInstance.is_pro_license_present@   s    4466mmIr*	7||C*f1EFH
 ==CIIhmm$4466!!%%m48NNN  	7IIaL4466	7s   B6 6C0*C++C0r6   N)   r[   r[   )__name__
__module____qualname____firstlineno__propertyr	   retryr   r(   r1   r8   rG   rK   rY   __static_attributes____classdictcell__)r   s   @r   r   r      sq      	ZZ
--IF G $   2 2 O Or   r   )loggingr>   typingr   r   uaclientr   r   r   r   r	   uaclient.cloudsr
   	getLoggerreplace_top_level_logger_namer\   rU   IMDS_BASE_URLAPI_VERSIONr%   rA   rE   rC   rW   r   r6   r   r   <module>rl      s     	  C C 9::8DE2]==K}>>L	
 > < < % 7O; 7Or   