3
\¼me¹ ã @ s° U d Z ddlZddlmZ ddlmZ ddlmZ ddlm Z m
Z
ddlmZ ddl
mZ dd lmZ d
Zddd
e egeg dgdœZedZ ejeƒZeeeeddœdd„ZdS )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' `__, 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.*
Zcc_write_files_deferredzWrite Files DeferredzDefer writing certain filesr )ÚidÚnameÚtitleÚdescriptionZdistrosZ frequencyZexamplesZactivate_by_schema_keysÚ )r ÚcfgÚcloudÚargsÚreturnc C sB |j dg ƒ}dd„ |D ƒ}|s.tjd| ƒ d S t| ||jjƒ d S )Nr c S s g | ]}t j|d tƒr|‘qS )Zdefer)r Zget_cfg_option_boolr )Ú.0Úf© r ú-/usr/lib/python3.6/cc_write_files_deferred.pyú
- s zhandle..zCSkipping module named %s, no deferred file defined in configuration)ÚgetÚLOGÚdebugr ZdistroZ
default_owner)r r r r Z file_listZfiltered_filesr r r Úhandle* s r )Ú__doc__ZloggingZ cloudinitr Zcloudinit.cloudr Zcloudinit.configr Zcloudinit.config.cc_write_filesr r Zcloudinit.config.schemar Zcloudinit.distrosr Zcloudinit.settingsr ZMODULE_DESCRIPTIONÚmetaZ getLoggerÚ__name__r ÚstrÚlistr r r r r Ú s(