
    f              
           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ed<   dZ  ej(                  e      Zdededededdf
dZy)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.*
cc_write_files_deferredzWrite Files DeferredzDefer writing certain filesr   )idnametitledescriptiondistros	frequencyexamplesactivate_by_schema_keysmeta r   cfgcloudargsreturnc                     |j                  dg       }|D cg c]  }t        j                  |dt              r|! }}|st        j                  d|        y t        | ||j                  j                         y c c}w )Nr   deferzCSkipping module named %s, no deferred file defined in configuration)	getr   get_cfg_option_boolr   LOGdebugr   distrodefault_owner)r   r   r   r   	file_listffiltered_filess          J/usr/lib/python3/dist-packages/cloudinit/config/cc_write_files_deferred.pyhandler&   *   s|    r*I ##Aw> 	
N 
 		9	

 	nell&@&@As   $A8)__doc__logging	cloudinitr   cloudinit.cloudr   cloudinit.configr   cloudinit.config.cc_write_filesr   r   cloudinit.config.schemar   cloudinit.distrosr	   cloudinit.settingsr
   MODULE_DESCRIPTIONr   __annotations__	getLogger__name__r   strlistr&        r%   <module>r8      s   
 8   ! # F . ) +  $"*} -	j 	 g!B B6 B% Bt B Br7   