
Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­Â�Â­
<!DOCTYPE html>
<html>
3
\¼me¹  ã            	   @   s°   U d Z ddlZddlmZ ddlmZ ddlmZ ddlm	Z	m
Z
 ddlmZ ddlmZ dd	lmZ d
Zddde egeg dgdœZedZ ejeƒZeeeeddœdd„ZdS )z1Write Files Deferred: Defer writing certain filesé    N)Úutil)ÚCloud)ÚConfig)ÚDEFAULT_DEFERÚwrite_files)Ú
MetaSchema)ÚALL_DISTROS)ÚPER_INSTANCEa5  This module is based on `'Write Files' <write_files>`__, and
will handle all files from the write_files list, that have been
marked as deferred and thus are not being processed by the
write_files module.

*Please note that his module is not exposed to the user through
its own dedicated top-level directive.*
Zcc_write_files_deferredzWrite Files DeferredzDefer writing certain filesr   )ÚidÚnameÚtitleÚdescriptionZdistrosZ	frequencyZexamplesZactivate_by_schema_keysÚ )r   ÚcfgÚcloudÚargsÚreturnc             C   sB   |j dg ƒ}dd„ |D ƒ}|s.tjd| ƒ d S t| ||jjƒ d S )Nr   c             S   s   g | ]}t j|d tƒr|‘qS )Zdefer)r   Zget_cfg_option_boolr   )Ú.0Úf© r   ú-/usr/lib/python3.6/cc_write_files_deferred.pyú
<listcomp>-   s   zhandle.<locals>.<listcomp>zCSkipping module named %s, no deferred file defined in configuration)ÚgetÚLOGÚdebugr   ZdistroZdefault_owner)r   r   r   r   Z	file_listZfiltered_filesr   r   r   Úhandle*   s    r   )Ú__doc__ZloggingZ	cloudinitr   Zcloudinit.cloudr   Zcloudinit.configr   Zcloudinit.config.cc_write_filesr   r   Zcloudinit.config.schemar   Zcloudinit.distrosr   Zcloudinit.settingsr	   ZMODULE_DESCRIPTIONÚmetaZ	getLoggerÚ__name__r   ÚstrÚlistr   r   r   r   r   Ú<module>   s(   

