Current File : //lib/python2.7/site-packages/cloudinit/config/cc_scripts_vendor.pyc |
�
oB�]c @ sK d Z d d l Z d d l m Z d d l m Z e Z d Z d � Z d S( 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( t util( t PER_INSTANCEt vendorc C s{ t j j | j � d t � } t j | d g � } y t j | d | �Wn* t k
rv | j d | t | � � n Xd S( Nt scriptst vendor_datat prefixt
exe_prefixs"