ó 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: iÿÿÿÿN(tutil(t PER_INSTANCEtvendorcCs{tjj|jƒdtƒ}tj|dgƒ}ytj|d|ƒWn*tk rv|j d|t|ƒ‚nXdS(Ntscriptst vendor_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 frequencyR R(((sF/usr/lib/python2.7/site-packages/cloudinit/config/cc_scripts_vendor.pyts