Current File : //lib/python2.7/site-packages/cloudinit/config/cc_scripts_vendor.pyo
�
oB�]c@sKdZddlZddlmZddlmZeZdZd�ZdS(s
Scripts Vendor
--------------
**Summary:** run vendor scripts

Any scripts in the ``scripts/vendor`` directory in the datasource will be run
when a new instance is first booted. Scripts will be run in alphabetical order.
Vendor scripts can be run with an optional prefix specified in the ``prefix``
entry under the ``vendor_data`` config key.

**Internal name:** ``cc_scripts_vendor``

**Module frequency:** per instance

**Supported distros:** all

**Config keys**::

    vendor_data:
        prefix: <vendor data prefix>
i����N(tutil(tPER_INSTANCEtvendorcCs{tjj|j�dt�}tj|dg�}ytj|d|�Wn*tk
rv|j	d|t|��nXdS(Ntscriptstvendor_datatprefixt
exe_prefixs"Failed to run module %s (%s in %s)(Rsprefix(
tostpathtjoint
get_ipath_curt
SCRIPT_SUBDIRRtget_cfg_by_pathtrunpartst	Exceptiontwarning(tnametcfgtcloudtlogt_argst
runparts_pathR((sF/usr/lib/python2.7/site-packages/cloudinit/config/cc_scripts_vendor.pythandle(s	
	
(	t__doc__Rt	cloudinitRtcloudinit.settingsRt	frequencyRR(((sF/usr/lib/python2.7/site-packages/cloudinit/config/cc_scripts_vendor.pyt<module>s