
    f              
           U d Z ddlZddlZddlmZ ddlmZ ddlmZ ddl	m
Z
mZ ddlmZ ddlmZ eZd	Zd
ddeegeg g dZe
ed<    ee      Z  ej(                  e      ZdZdededededdf
dZy)z&Scripts Per Boot: Run per boot scripts    N)subp)Cloud)Config)
MetaSchemaget_meta_doc)ALL_DISTROS)
PER_ALWAYSzAny scripts in the ``scripts/per-boot`` directory on the datasource will be run
every time the system boots. Scripts will be run in alphabetical order. This
module does not accept any config keys.
cc_scripts_per_bootzScripts Per BootzRun per boot scripts)idnametitledescriptiondistros	frequencyexamplesactivate_by_schema_keysmetazper-bootr   cfgcloudargsreturnc                     t         j                  j                  |j                         dt              }	 t        j                  |       y # t        $ r t        j                  d| t        |        w xY w)Nscriptsz"Failed to run module %s (%s in %s))
ospathjoin	get_cpathSCRIPT_SUBDIRr   runparts	ExceptionLOGwarning)r   r   r   r   runparts_paths        F/usr/lib/python3/dist-packages/cloudinit/config/cc_scripts_per_boot.pyhandler%   -   s^     GGLL!2I}MM	m$ 0		
 	s   A 'A2)__doc__loggingr   	cloudinitr   cloudinit.cloudr   cloudinit.configr   cloudinit.config.schemar   r   cloudinit.distrosr   cloudinit.settingsr	   r   MODULE_DESCRIPTIONr   __annotations__	getLogger__name__r!   r   strlistr%        r$   <module>r6      s    -  	  ! # < ) )	   #%}!	j 	 t
g! 6 % t  r5   