x[hh UdZddlZddlZddlmZddlmZddlmZddl m Z ddl m Z ddl mZd e ged gd Ze ed <ej"eZd ededededdf dZy)zERuncmd: run arbitrary commands at rc.local with output to the consoleN)util)Cloud)Config) MetaSchema) ALL_DISTROS) PER_INSTANCE cc_runcmdruncmd)iddistros frequencyactivate_by_schema_keysmetanamecfgcloudargsreturnc`d|vrtjd|ytjj |j dd}|d} t j|}t j||dy#t$r&}t|dj||d}~wwxYw)Nr z:Skipping module named %s, no 'runcmd' key in configurationscriptsiz"Failed to shellify {} into file {}) LOGdebugospathjoin get_ipathrshellify write_file Exceptiontypeformat)rrrrout_fncmdcontentes > B-!B((B-)__doc__loggingr cloudinitrcloudinit.cloudrcloudinit.configrcloudinit.config.schemarcloudinit.distrosrcloudinit.settingsrr__annotations__ getLogger__name__rstrlistr'r&r7sL !#.)+ } (z jg! P P6 P% Pt P Pr6