
­­­­­­­­­­­­­­­­­­
<!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(   

