܍~c UdZddlZddlmZddlmZddlmZddlm Z ddl m Z m Z ddl mZdd lmZeZd Zd d d eegeggdZe ed<e eZdZdede dedededdf dZdS)z&Scripts Per Once: Run one time scriptsN)Logger)subp)Cloud)Config) MetaSchema get_meta_doc) ALL_DISTROS)PER_ONCEa4Any scripts in the ``scripts/per-once`` directory on the datasource will be run only once. Changes to the instance will not force a re-run. The only way to re-run these scripts is to run the clean subcommand and reboot. Scripts will be run in alphabetical order. This module does not accept any config keys. cc_scripts_per_oncezScripts Per OncezRun one time scripts)idnametitle descriptiondistros frequencyexamplesactivate_by_schema_keysmetazper-oncer cfgcloudlogargsreturnctj|dt} t j|dS#t$r|d|t|wxYw)Nscriptsz"Failed to run module %s (%s in %s)) ospathjoin get_cpath SCRIPT_SUBDIRrrunparts Exceptionwarning)r rrrr runparts_paths F/usr/lib/python3/dist-packages/cloudinit/config/cc_scripts_per_once.pyhandler&,s GLL!2!2I}MMM  m$$$$$  0       s A)A9)__doc__rloggingr cloudinitrcloudinit.cloudrcloudinit.configrcloudinit.config.schemarrcloudinit.distrosr cloudinit.settingsr rMODULE_DESCRIPTIONr__annotations__r strlistr&r%r5sG-,, !!!!!!######<<<<<<<<))))))''''''    #%}!  j    ,t    #(/5=A r4