/usr/lib/python3/dist-packages/cloudinit/__pycache__
NameSizeModeActions
apport.cpython-310.pyc73170644editdlrm
atomic_helper.cpython-310.pyc28780644editdlrm
cloud.cpython-310.pyc31990644editdlrm
dmi.cpython-310.pyc63100644editdlrm
event.cpython-310.pyc20760644editdlrm
features.cpython-310.pyc16680644editdlrm
gpg.cpython-310.pyc69120644editdlrm
helpers.cpython-310.pyc136850644editdlrm
importer.cpython-310.pyc17760644editdlrm
lifecycle.cpython-310.pyc83840644editdlrm
netinfo.cpython-310.pyc140660644editdlrm
performance.cpython-310.pyc36670644editdlrm
persistence.cpython-310.pyc29310644editdlrm
registry.cpython-310.pyc14820644editdlrm
safeyaml.cpython-310.pyc79310644editdlrm
settings.cpython-310.pyc11850644editdlrm
signal_handler.cpython-310.pyc26890644editdlrm
simpletable.cpython-310.pyc26880644editdlrm
socket.cpython-310.pyc47440644editdlrm
ssh_util.cpython-310.pyc158150644editdlrm
stages.cpython-310.pyc275610644editdlrm
subp.cpython-310.pyc99720644editdlrm
templater.cpython-310.pyc63740644editdlrm
temp_utils.cpython-310.pyc28370644editdlrm
type_utils.cpython-310.pyc4710644editdlrm
url_helper.cpython-310.pyc291510644editdlrm
user_data.cpython-310.pyc85150644editdlrm
util.cpython-310.pyc708780644editdlrm
version.cpython-310.pyc4660644editdlrm
warnings.cpython-310.pyc33760644editdlrm
__init__.cpython-310.pyc1450644editdlrm
Edit: /usr/lib/python3/dist-packages/cloudinit/__pycache__/event.cpython-310.pyc (2076B)
o ƒtÖhã@stdZddlZddlmZddlmZmZe e¡Z Gdd„deƒZ Gdd„deƒZ d e d ee ee ffd d „Z dS) z0Classes and functions related to event handling.éN)ÚEnum)ÚDictÚSetc@seZdZdZdd„ZdS)Ú EventScopeÚnetworkcCó|jS©N©Úvalue©Úself©r ú1/usr/lib/python3/dist-packages/cloudinit/event.pyÚ__str__ózEventScope.__str__N)Ú__name__Ú __module__Ú __qualname__ÚNETWORKrr r r rr s rc@s(eZdZdZdZdZdZdZdd„ZdS) Ú EventTypezCEvent types which can generate maintenance requests for cloud-init.Úbootzboot-new-instancez boot-legacyÚhotplugcCrrr r r r rr"rzEventType.__str__N) rrrÚ__doc__ÚBOOTÚBOOT_NEW_INSTANCEÚ BOOT_LEGACYÚHOTPLUGrr r r rrs rÚ user_configÚreturnc Cs¼i}| ¡D]U\}}zt|ƒ}Wnty+}zt dt|ƒ|¡WYd}~qd}~wwz dd„|dDƒ}WntyT}zt dt|ƒ|¡g}WYd}~nd}~wwt|ƒ||<q|S)aConvert userdata into update config format defined on datasource. Userdata is in the form of (e.g): {'network': {'when': ['boot']}} DataSource config is in the form of: {EventScope.Network: {EventType.BOOT}} Take the first and return the second z.%s! Update data will be ignored for '%s' scopeNcSsg|]}t|ƒ‘qSr )r)Ú.0Úxr r rÚ =sz&userdata_to_events..Úwhen)ÚitemsrÚ ValueErrorÚLOGÚwarningÚstrÚset)rÚ update_configÚscopeÚ scope_listÚ new_scopeÚeÚ new_valuesr r rÚuserdata_to_events&s4  ý €úý€úr/)rÚloggingÚenumrÚtypingrrÚ getLoggerrr%rrÚdictr/r r r rÚs   "