
    x[h              
           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
 ddlmZ ddlmZ d	egeg d
Ze
ed<    ej"                  e      ZdZdededededdf
dZy)z&Scripts Per Once: Run one time scripts    N)subp)Cloud)Config)
MetaSchema)ALL_DISTROS)PER_ONCEcc_scripts_per_once)iddistros	frequencyactivate_by_schema_keysmetazper-oncename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_once.pyhandler!       s^     GGLL!2I}MM	m$ 0		
 	s   A 'A2)__doc__loggingr   	cloudinitr   cloudinit.cloudr   cloudinit.configr   cloudinit.config.schemar   cloudinit.distrosr   cloudinit.settingsr   r   __annotations__	getLogger__name__r   r   strlistr!        r    <module>r1      s    -  	  ! # . ) '  }!	j  g! 6 % t  r0   