܍~cy UdZddlZddlmZddlmZddlmZddlm Z ddl m Z m Z ddl mZdd lmZd Zd d d eegeggdZe ed<e eZdZdede dedededdf dZdS)zScripts User: Run user scriptsN)Logger)subp)Cloud)Config) MetaSchema get_meta_doc) ALL_DISTROS) PER_INSTANCEaThis module runs all user scripts. User scripts are not specified in the ``scripts`` directory in the datasource, but rather are present in the ``scripts`` dir in the instance configuration. Any cloud-config parts with a ``#!`` will be treated as a script and run. Scripts specified as cloud-config parts will be run in the order they are specified in the configuration. This module does not accept any config keys. cc_scripts_userz Scripts UserzRun user scripts)idnametitle descriptiondistros frequencyexamplesactivate_by_schema_keysmetascriptsr cfgcloudlogargsreturnctj|t} t j|dS#t$r|d|t|wxYw)Nz"Failed to run module %s (%s in %s)) ospathjoin get_ipath_cur SCRIPT_SUBDIRrrunparts Exceptionwarning)r rrrr runparts_paths B/usr/lib/python3/dist-packages/cloudinit/config/cc_scripts_user.pyhandler&.s GLL!4!4!6!6 FFM  m$$$$$  0       s A)A8)__doc__rloggingr cloudinitrcloudinit.cloudrcloudinit.configrcloudinit.config.schemarrcloudinit.distrosr cloudinit.settingsr MODULE_DESCRIPTIONr__annotations__r strlistr&r%r5sD%$$ !!!!!!######<<<<<<<<))))))++++++   %}!  j    ,t    #(/5=A r4