+
    i                         ^ RI t ^ RIt^ RIHtHtHt ^ RIHt ] P                  ! ]	4      t
 ! R R]P                  4      tR# )    N)handlerssubputil)
PER_ALWAYSc                   8   a  ] tR t^t o R.tR tR tR tRtV t	R# )BootHookPartHandlerz#cloud-boothookc                    \         P                  P                  V \        4       VP	                  R 4      V n        RV n        V'       d   VP                  4       V n        R# R# )	boothooksN)r   Handler__init__r   	get_ipathboothook_dirinstance_idget_instance_id)selfpaths
datasource_kwargss   &&&,>/usr/lib/python3/dist-packages/cloudinit/handlers/boot_hook.pyr   BootHookPartHandler.__init__   sJ    !!$
3!OOK8)99;D     c                J   \         P                  ! V4      p\        P                  P	                  V P
                  V4      p\         P                  ! \         P                  ! V4      V P                  ^ ,          R7      p\         P                  ! W4P                  4       R4       V# )r   )prefixi  )r   clean_filenameospathjoinr   strip_prefix_suffixdos2unixprefixes
write_filelstrip)r   payloadfilenamefilepathcontentss   &&&  r   _write_partBootHookPartHandler._write_part    so    &&x077<< 1 18<++MM'"4==+;
 	//"3U;r   c                   V\         P                  9   d   R # V P                  WC4      p V P                  '       d   R\	        V P                  4      /M/ p\
        P                  R4       \        P                  ! V.VRR7       R #   \        P                   d!    \        P                  ! \
        RT4        R # \         d!    \        P                  ! \
        RT4        R # i ; i)NINSTANCE_IDzExecuting boothookF)
update_envcapturez#Boothooks script %s execution errorz'Boothooks unknown error when running %s)r   CONTENT_SIGNALSr'   r   strLOGdebugr   ProcessExecutionErrorr   logexc	Exception)r   datactyper$   r#   	frequencyr%   envs   &&&&&&  r   handle_partBootHookPartHandler.handle_part)   s    H,,,##G6	 ### D$4$4 56 
 II*+IIxjS%@)) 	NKKBHM 	KK>	s   AB 1C$:C$C$#C$)r   r   N)
__name__
__module____qualname____firstlineno__r    r   r'   r8   __static_attributes____classdictcell__)__classdict__s   @r   r   r      s#      ""H< r   r   )loggingr   	cloudinitr   r   r   cloudinit.settingsr   	getLoggerr:   r/   r   r    r   r   <module>rF      s8     	 * * )!'(** 'r   