3 \¼me¹ã @s°UdZddlZddlmZddlmZddlmZddlm Z m Z ddl m Z ddl mZdd lmZd Zd d d eegegdgdœZe dZejeƒZeeeeddœdd„ZdS)z1Write Files Deferred: Defer writing certain fileséN)Úutil)ÚCloud)ÚConfig)Ú DEFAULT_DEFERÚ write_files)Ú MetaSchema)Ú ALL_DISTROS)Ú PER_INSTANCEa5This 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ÚreturncCsB|jdgƒ}dd„|Dƒ}|s.tjd|ƒdSt|||jjƒdS)NrcSsg|]}tj|dtƒr|‘qS)Zdefer)rZget_cfg_option_boolr)Ú.0Úf©rú-/usr/lib/python3.6/cc_write_files_deferred.pyú -szhandle..zCSkipping module named %s, no deferred file defined in configuration)ÚgetÚLOGÚdebugrZdistroZ default_owner)r rrrZ file_listZfiltered_filesrrrÚhandle*s r)Ú__doc__ZloggingZ cloudinitrZcloudinit.cloudrZcloudinit.configrZcloudinit.config.cc_write_filesrrZcloudinit.config.schemarZcloudinit.distrosrZcloudinit.settingsr ZMODULE_DESCRIPTIONÚmetaZ getLoggerÚ__name__rÚstrÚlistrrrrrÚs(