+
    i                         R t ^ RIt^ RIHt ^ RIHtHt ]P                  ! ]4      t	 ! R R]4      t
 ! R R]4      tR R	 ltR# )
z0Classes and functions related to event handling.N)Enum)DictSetc                   *   a  ] tR t^t o RtR tRtV tR# )
EventScopenetworkc                    V P                   # Nvalueselfs   &1/usr/lib/python3/dist-packages/cloudinit/event.py__str__EventScope.__str__       zz     N)__name__
__module____qualname____firstlineno__NETWORKr   __static_attributes____classdictcell____classdict__s   @r   r   r      s      G r   r   c                   :   a  ] tR t^t o RtRtRtRtRtR t	Rt
V tR# )		EventTypezCEvent types which can generate maintenance requests for cloud-init.bootzboot-new-instancezboot-legacyhotplugc                    V P                   # r	   r
   r   s   &r   r   EventType.__str__"   r   r   r   N)r   r   r   r   __doc__BOOTBOOT_NEW_INSTANCEBOOT_LEGACYHOTPLUGr   r   r   r   s   @r   r   r      s)     M D+KG r   r   c                h    V ^8  d   QhR\         R\        \        \        \        ,          3,          /# )   user_configreturn)dictr   r   r   r   )formats   "r   __annotate__r.   &   s(     ! !D !T*c)n2L-M !r   c                   / pV P                  4        F@  w  r# \        V4      p TR,           Uu. uF  p\        T4      NK  	  pp\        T4      Y&   KB  	  V#   \         d,   p\        P	                  R\        T4      T4        Rp?Kw  Rp?ii ; iu upi   \         d-   p\        P	                  R\        T4      T4       . p Rp?LRp?ii ; i)zConvert 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' scopeNwhen)itemsr   
ValueErrorLOGwarningstrr   set)r*   update_configscope
scope_list	new_scopeex
new_valuess   &       r   userdata_to_eventsr>   &   s     M(..0	"5)I	0:60BC0B1)A,0BJC $'z? ' 1* %  	KK@A
 	 D 	KK@A
 J	s?   ABBBB$ B

BBC""C		C)r#   loggingenumr   typingr   r   	getLoggerr   r3   r   r   r>   r   r   r   <module>rC      s>    6   !  "!r   